Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

nullness.hh

Go to the documentation of this file.
00001 #ifndef NO_PTR_NULLNESS_H
00002 #define NO_PTR_NULLNESS_H
00003 
00023 namespace NoPtr
00024 {
00026 const int NullPtr = 0;
00027 
00032 template <typename T>
00033 inline bool 
00034 isNull(T* p) {return 0==p;}
00035 
00040 template <typename T>
00041 inline bool 
00042 isNotNull(T* p) {return 0!=p;}
00043 
00049 template <typename T>
00050 inline void 
00051 nullify(T*& p) {p=0;}
00052 
00053 } // NoPtr
00054 
00055 #endif // NO_PTR_NULLNESS_H

Generated on Mon Aug 4 18:51:23 2003 for NoPtr C++ Library by doxygen 1.3.2