1 #ifndef _UNIQUEALLOCATOR_H_ 2 #define _UNIQUEALLOCATOR_H_ 51 void deallocate(
value_type* p, std::size_t n) noexcept
65 template <
class P>
inline void delete_if_ptr (P*
const& p) {
delete(p); }
84 template <
class U>
void destroy(U* p) noexcept
92 template <
class T,
class U>
bool 99 template <
class T,
class U>
bool UniqueAllocator replaces the std::allocator for the internal stuctures of SlidingBuffer.
UniqueAllocator() noexcept
Constuctor.
T value_type
Type of values to allocate.
void delete_if_ptr(P *const &p)
If the argument matches a pointer type, delete the object at which it points.
void destroy(U *p) noexcept
Destroy (but don't deallocate) the collection member.
void delete_if_ptr(P const &)
If P isn't a pointer type, ignore this call.