MongoDB  2.7.0
Public Member Functions | List of all members
mongo::ptr< T > Struct Template Reference

A generic pointer type for function arguments. More...

#include <goodies.h>

Public Member Functions

 ptr (T *p)
 
template<typename U >
 ptr (U *p)
 
template<typename U >
 ptr (const ptr< U > &p)
 
template<typename U >
 ptr (const boost::shared_ptr< U > &p)
 
template<typename U >
 ptr (const boost::scoped_ptr< U > &p)
 
ptroperator= (T *p)
 
template<typename U >
ptroperator= (U *p)
 
template<typename U >
ptroperator= (const ptr< U > &p)
 
template<typename U >
ptroperator= (const boost::shared_ptr< U > &p)
 
template<typename U >
ptroperator= (const boost::scoped_ptr< U > &p)
 
T * operator-> () const
 
T & operator* () const
 
 operator T * () const
 

Detailed Description

template<typename T>
struct mongo::ptr< T >

A generic pointer type for function arguments.

It will convert from any pointer type except auto_ptr. Semantics are the same as passing the pointer returned from get() const ptr<T> => T * const ptr<const T> => T const * or const T*


The documentation for this struct was generated from the following file: