libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ construct()

template<typename _Up, typename... _Args>
constexpr void std::allocator_traits< allocator< void > >::construct ( allocator_type & ,
_Up * __p,
_Args &&... __args )
inlinestaticconstexprnoexcept

Construct an object of type _Up.

Parameters
__aAn allocator.
__pPointer to memory of suitable size and alignment for an object of type _Up.
__argsConstructor arguments.

Calls __a.construct(__p, std::forward<_Args>(__args)...) in C++11, C++14 and C++17. Changed in C++20 to call std::construct_at(__p, std::forward<_Args>(__args)...) instead.

Definition at line 843 of file bits/alloc_traits.h.

constexpr void _Construct(_Tp *__p, _Args &&... __args)
Uniform interface to all allocator types.

References std::__is_nothrow_new_constructible, std::_Construct(), and std::forward().

Here is the call graph for this function: