mn_basic_deleter.hpp
Go to the documentation of this file.
142 template<typename U, typename = typename enable_if<is_convertible<U*, value_type*>::value>::type>
size_t m_sArraySize
Definition: mn_basic_deleter.hpp:192
typename mn::remove_cv< U >::type remove_cv_type
Definition: mn_basic_deleter.hpp:116
TAllocator & reference
Definition: mn_basic_deleter.hpp:113
constexpr basic_deleter(reference alloc, size_t size) noexcept
Construt a basic deleter.
Definition: mn_basic_deleter.hpp:134
basic_deleter(const basic_deleter< U[], TAllocator > &other) noexcept
Converting constructor. Allows conversion from a deleter for arrays of another type,...
Definition: mn_basic_deleter.hpp:143
void set_allocator(reference alloc) noexcept
Set the using allocator for delete.
Definition: mn_basic_deleter.hpp:166
void operator()(value_type *pArray) noexcept
Calls deallocate pArray.
Definition: mn_basic_deleter.hpp:181
size_t get_size() const
Get the size of the array.
Definition: mn_basic_deleter.hpp:174
enable_if< is_derived_Tp< U >::value >::type operator()(value_type *) const =delete
pointer m_refAllocator
Definition: mn_basic_deleter.hpp:191
TAllocator * pointer
Definition: mn_basic_deleter.hpp:112
constexpr basic_deleter()
Construct a basic deleter.
Definition: mn_basic_deleter.hpp:128
reference get_allocator()
Get a reference from the using allocator.
Definition: mn_basic_deleter.hpp:158
Type value_type
Definition: mn_basic_deleter.hpp:110
TAllocator allocator
Definition: mn_basic_deleter.hpp:111
bool is_valid() const noexcept
Is the deleter valid - have a allocator.
Definition: mn_basic_deleter.hpp:150
basic_deleter(const basic_deleter< U, TAllocator > &other) noexcept
Converting constructor. Allows conversion from a deleter for arrays of another type,...
Definition: mn_basic_deleter.hpp:61
constexpr basic_deleter()
Construct a basic deleter.
Definition: mn_basic_deleter.hpp:47
bool is_valid() const noexcept
Is the deleter valid - have a allocator.
Definition: mn_basic_deleter.hpp:68
constexpr basic_deleter(reference alloc, size_t) noexcept
Construt a basic deleter.
Definition: mn_basic_deleter.hpp:52
reference get_allocator()
Get a reference from the using allocator.
Definition: mn_basic_deleter.hpp:76
void set_allocator(reference alloc) noexcept
Set the using allocator for delete.
Definition: mn_basic_deleter.hpp:84
void operator()(value_type *pP) noexcept
Calls deallocate pArray.
Definition: mn_basic_deleter.hpp:91
struct mn::memory::detail::ptr_difference type
Definition: mn_allocator_typetraits.hpp:25
Definition: mn_functional.hpp:188
Definition: mn_typetraits.hpp:125
Definition: mn_functional.hpp:211
Definition: mn_typetraits.hpp:300