BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::SharedPtr_DefaultDeleter< bool > Struct Template Reference

#include <bslstl_sharedptr.h>

Public Member Functions

template<class ANY_TYPE >
void operator() (ANY_TYPE *ptr) const BSLS_KEYWORD_NOEXCEPT
 Call delete with the specified ptr.
 
void operator() (ANY_TYPE *ptr) const BSLS_KEYWORD_NOEXCEPT
 
void operator() (ANY_TYPE *ptr) const BSLS_KEYWORD_NOEXCEPT
 

Detailed Description

template<bool>
struct bslstl::SharedPtr_DefaultDeleter< bool >

This struct provides a function-like shared pointer deleter that invokes delete with the passed pointer. If the template parameter is true, then the pointer is deleted using operator delete []. Otherwise, it is deleted using operator delete.

Member Function Documentation

◆ operator()() [1/3]

template<bool >
template<class ANY_TYPE >
void bslstl::SharedPtr_DefaultDeleter< bool >::operator() ( ANY_TYPE *  ptr) const

◆ operator()() [2/3]

void bslstl::SharedPtr_DefaultDeleter< true >::operator() ( ANY_TYPE *  ptr) const
inline

◆ operator()() [3/3]

void bslstl::SharedPtr_DefaultDeleter< false >::operator() ( ANY_TYPE *  ptr) const
inline

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