#include "gdef.h"
#include <memory>
Go to the source code of this file.
Functions | |
template<typename T > | |
void | operator<<= (std::auto_ptr< T > &ap, T *p) |
A portable fix for the problem of resetting an auto_ptr<>. More... | |
template<typename T > | |
void | operator<<= (std::auto_ptr< T > &ap, int) |
A version for null-pointer constants. More... | |
void operator<<= | ( | std::auto_ptr< T > & | ap, |
T * | p | ||
) |
A portable fix for the problem of resetting an auto_ptr<>.
Some compilers do not have a reset() method, and some have non-const assignment operators.
Usage: