KSS Utility
C++ general utilities
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
kss::util::memory::NullDelete< T > Class Template Reference

Similar to std::default_delete but does not actually do anything. More...

#include <memory.hpp>

Public Member Functions

void operator() (T *ptr) const noexcept
 

Detailed Description

template<class T>
class kss::util::memory::NullDelete< T >

Similar to std::default_delete but does not actually do anything.

This is similar to std::default_delete except that this class actually does nothing. It's purpose is for areas where you want the semantics of a shared_ptr but do not actually want the pointer deleted when it is done because it is being managed by some other means.

Definition at line 29 of file memory.hpp.

Member Function Documentation

template<class T >
void kss::util::memory::NullDelete< T >::operator() ( T *  ptr) const
inlinenoexcept

Definition at line 31 of file memory.hpp.


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