MI - Fimex
Public Member Functions | Protected Attributes | List of all members
MetNoFimex::SharedArrayConstCastDeleter< T > Struct Template Reference

#include <Utils.h>

Public Member Functions

 SharedArrayConstCastDeleter (boost::shared_array< T > ptr)
 
template<typename C >
void operator() (C *)
 

Protected Attributes

boost::shared_array< T > ptr
 

Detailed Description

template<typename T>
struct MetNoFimex::SharedArrayConstCastDeleter< T >

delete-class for shared_array's, making sure that the original shared_array does not expire before the current shared_array. Use as

boost::shared_array<int> bla; boost::shared_array<const int>(bla.get(), SharedArrayConstCastDeleter(bla));

Constructor & Destructor Documentation

template<typename T >
MetNoFimex::SharedArrayConstCastDeleter< T >::SharedArrayConstCastDeleter ( boost::shared_array< T >  ptr)
inline

Member Function Documentation

template<typename T >
template<typename C >
void MetNoFimex::SharedArrayConstCastDeleter< T >::operator() ( C *  )
inline

Member Data Documentation

template<typename T >
boost::shared_array<T> MetNoFimex::SharedArrayConstCastDeleter< T >::ptr
protected

The documentation for this struct was generated from the following file: