PLaSK library
|
This file contains utils connected with memory management, it contains utils to operate on memory, pointers, smart pointers, etc. More...
#include <plask/config.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
Go to the source code of this file.
Classes | |
struct | plask::Holder< T > |
Template for base class of object holder. More... | |
struct | plask::HolderRef< T > |
Template for base class of object holder. More... | |
Namespaces | |
namespace | plask |
Patterson quadrature for complex function along specified line. | |
Macros | |
#define | BOOST_BIND_GLOBAL_PLACEHOLDERS |
Functions | |
template<typename T > | |
shared_ptr< T > | plask::getUnique (const shared_ptr< T > &ptr) |
Copy ptr data if is not the only shared_ptr instance managing the current object, i.e. | |
template<typename T > | |
shared_ptr< T > | plask::getUnique (const shared_ptr< const T > &ptr) |
Copy ptr data if is not the only shared_ptr instance managing the current object, i.e. | |
template<typename T > | |
void | plask::makeUnique (shared_ptr< T > &ptr) |
Copy ptr data if is not the only shared_ptr instance managing the current object, i.e. | |
This file contains utils connected with memory management, it contains utils to operate on memory, pointers, smart pointers, etc.
It put smart pointers (boost or std ones - dependly of plask build configuration) in plask namespace.
Definition in file memory.hpp.
#define BOOST_BIND_GLOBAL_PLACEHOLDERS |
Definition at line 40 of file memory.hpp.