C++ concepts: MoveInsertable (since C++11)
Specifies that a rvalue of the type can be copied in uninitialized storage.
MoveInsertable into the
X if, given
|| the allocator type defined as |
|| the lvalue of type |
|| the pointer of type |
|| rvalue expression of type |
the following expression is well-formed:
std::allocator_traits<A>::construct(m, p, rv);
The difference with
CopyInsertable is that the requirement is for an rvalue expression of type
Note that if
A is std::allocator<T>, then this will call placement-new, as by ::new((void*)p) T(rv).