![]() |
Header file for a safe C++ NULL pointer implementation. More...
Go to the source code of this file.
Classes | |
class | blaze::Null |
Safe C++ NULL pointer implementation.This implementation offers a remedy for the use of the NULL pointer in C++. For this, the NULL macro is replaced by an instance of the Null class, which can only be assigned and compared with pointers and pointers-to-member. Therefore the use of NULL regains the type safety it lost in C++ due to the strict C++ type system. The NULL pointer is used exactly as before: More... | |
Namespaces | |
blaze | |
Namespace of the Blaze C++ math library. | |
Functions | |
Null operators | |
template<typename T > | |
bool | blaze::operator== (const Null &lhs, const T &rhs) |
Equality comparison between Null and a pointer or pointer-to-member. More... | |
template<typename T > | |
bool | blaze::operator== (const T &lhs, const Null &rhs) |
Equality comparison between a pointer or pointer-to-member and Null. More... | |
template<typename T > | |
bool | blaze::operator!= (const Null &lhs, const T &rhs) |
Inequality comparison between Null and a pointer or pointer-to-member. More... | |
template<typename T > | |
bool | blaze::operator!= (const T &lhs, const Null &rhs) |
Inequality comparison between a pointer or pointer-to-member and Null. More... | |
Variables | |
const blaze::Null | NULL |
Global NULL pointer.This instance of the Null class replaces the NULL macro to ensure a type-safe NULL pointer. | |
Header file for a safe C++ NULL pointer implementation.
Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.