![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
A struct to provide the shared_ptr type. More...
#include <shared_ptr.h>
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>
If O2SCL_NO_TR1_MEMORY
is defined, then type is a typedef of o2_int_shared_ptr, unless O2SCL_HAVE_BOOST
is defined, in which case type 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 356 of file shared_ptr.h.
Public Types | |
typedef std::tr1::shared_ptr< T > | type |
The actual shared_ptr type. |
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).