Namespaces
Variants
Views
Actions

cpp/named req/Erasable

From cppreference.com
< cpp‎ | named req
Revision as of 23:55, 19 September 2014 by D41D8CD98F (Talk | contribs)

Template:cpp/concept/title Template:cpp/concept/navbar

Specifies that an object of the type can be destroyed by a given Template:concept.

Requirements

The type T is Template:concept from the Template:concept 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);

See Also

Template:concept
Template:concept
Template:concept
Template:concept