nullptr_t Class Reference

A class to simulate the proposed nullptr keyword. More...

#include <nullptr.hpp>

List of all members.

Public Member Functions

template<class T>
 operator T * () const
 Allow conversion to any type of null non-member pointer.
template<class C, class T>
 operator T C::* () const
 Allow conversion to any type of null member pointer.

Private Member Functions

void operator & () const
 Don't allow address to be taken.


Detailed Description

A class to simulate the proposed nullptr keyword.

This was adapted from the May 2004 CUJ article by Herb Sutter.


Member Function Documentation

template<class T>
nullptr_t::operator T * (  )  const [inline]

Allow conversion to any type of null non-member pointer.

template<class C, class T>
nullptr_t::operator T C::* (  )  const [inline]

Allow conversion to any type of null member pointer.

void nullptr_t::operator & (  )  const [private]

Don't allow address to be taken.


The documentation for this class was generated from the following file:
Generated on Wed Feb 13 22:53:28 2008 for Core Library by  doxygen 1.5.2