C++ concepts: Erasable

From cppreference.com
< cpp‎ | concept
 
 
 

Specifies that an object of the type can be destroyed by a given Allocator.

[edit] Requirements

The type T is Erasable from the Container X if, given

A the allocator type defined as X::allocator_type
m the lvalue of type A obtained from X::get_allocator()
p the pointer of type T* prepared by the container

the following expression is well-formed:

std::allocator_traits<A>::destroy(m, p);

[edit] See Also

CopyInsertable
MoveInsertable
EmplaceConstructible
Destructible