mongo::ptr< T > Struct Template Reference
#include <goodies.h>
List of all members.
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*
Definition at line 569 of file goodies.h.
Constructor & Destructor Documentation
template<typename T>
template<typename U >
template<typename T>
template<typename U >
template<typename T>
template<typename U >
mongo::ptr< T >::ptr |
( |
const boost::shared_ptr< U > & |
p |
) |
[inline] |
template<typename T>
template<typename U >
mongo::ptr< T >::ptr |
( |
const boost::scoped_ptr< U > & |
p |
) |
[inline] |
Member Function Documentation
template<typename T>
template<typename U >
ptr& mongo::ptr< T >::operator= |
( |
const boost::scoped_ptr< U > & |
p |
) |
[inline] |
template<typename T>
template<typename U >
ptr& mongo::ptr< T >::operator= |
( |
const boost::shared_ptr< U > & |
p |
) |
[inline] |
template<typename T>
template<typename U >
template<typename T>
template<typename U >
Member Data Documentation
The documentation for this struct was generated from the following file: