A struct to provide the shared_ptr type. More...
This object exists in order to provide the shared_ptr template type used in O2scl . The full specification of a shared pointer in O2scl for an object of type T
is thus
o2scl::o2_shared_ptr<T>::type
In a default O2scl installation, type (as given below) is a typedef of
std::tr1::shared_ptr<T>
Ifs O2SCL_HAVE_BOOST
is defined, then it is a typedef of
boost::shared_ptr<T>
See also the discussion at http://www.gotw.ca/gotw/079.htm . This struct won't be necessary when C++ allows template typedef's as part of the C++11 standard http://en.wikipedia.org/wiki/C%2B%2B11 , but very few compilers have implemented this standard yet.
Definition at line 60 of file shared_ptr.h.
#include <shared_ptr.h>
Public Types | |
typedef std::tr1::shared_ptr< T > | type |
The actual shared_ptr type. | |
typedef std::tr1::shared_ptr< T > | type |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).
Hosted at
.