functor to wrap statically allocated data a shared pointer representation More...
#include <mia/core/tools.hh>
Public Types | |
typedef std::shared_ptr< Data > | PData |
Public Member Functions | |
PData | operator() (Data &d) const |
functor to wrap statically allocated data a shared pointer representation
This functor wraps a statically allocated data into a std::shared_ptr. The data must not be constant and it well not be freed when the shared_ptr is destoyed. The functor is designed to be usable by the std::transform function.
Data | the data type to be wrapped into the shared pointer; |
typedef std::shared_ptr<Data> FWrapStaticDataInSharedPointer< Data >::PData |
|
inline |