C++ concepts: DefaultInsertable
From cppreference.com
Specifies that an instance of the type can be default-constructed in-place, in uninitialized storage.
[edit] Requirements
The type T
is DefaultInsertable
into 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>::construct(m, p);
[edit] Notes
If A
is std::allocator<T>, then this will call placement-new, as by ::new((void*)p) T{}
[edit] See Also
CopyInsertable
|
|
MoveInsertable
|
|
EmplaceConstructible
|
|
Destructible
|