Gromacs
5.1.5
|
#include <gromacs/utility/uniqueptr.h>
Smart pointer for unique ownership.
The type member typedef declares the actual smart pointer type. If std::unique_ptr from C++11 is available, it is used, otherwise maps to boost::shared_ptr. Because of this, there are some limitations to usage. gmx::move() should be used to move the pointer.
Avoid using directly as a type, use a typedef instead. Typical usage:
Public Types | |
typedef boost::shared_ptr< T > | type |
The smart pointer type. Work-around for the non-existence of template typedefs in C++03. | |