std::allocator<T>::construct
Min standard notice:
Header: <memory>
Constructs an object of type T in allocated uninitialized storage pointed to by p, using global placement-new.
# Declarations
void construct( pointer p, const_reference val );
(until C++11)
template< class U, class... Args >
void construct( U* p, Args&&... args );
(since C++11) (deprecated in C++17) (removed in C++20)
# Parameters
p: pointer to allocated uninitialized storageval: the value to use as the copy constructor argumentargs...: the constructor arguments to use
# Return value
(none)
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 402 | C++98 | if T::operator new exists, the program might be ill-formed | uses global replacement-new instead |