C++ | Compiler support | Freestanding and hosted | Language | Standard library | Standard library headers | Named requirements | Feature test macros | Language support library | Concepts library | Diagnostics library | Memory management library | Metaprogramming library | Containers library | Iterators library | Ranges library | Algorithms library | Strings library | Text processing library | Numerics library | Date and time library | Input/output library | Filesystem library | Concurrency support library | Execution control library | Technical specifications | Symbols index | [edit]
From cppreference.com
template<classT,classAlloc,class...Args>constexprTmake_obj_using_allocator(constAlloc&alloc,Args&&...args);(since C++20)Creates an object of the given type T by means of
.
Equivalent to
returnstd::make_from_tuple<T>(std::uses_allocator_construction_args<T>(alloc,std::forward<Args>(args)...));Parameters
alloc - the allocator to use args - the arguments to pass to T's constructor Return value
The newly-created object of type T.
Exceptions
May throw any exception thrown by the constructor of T, typically including
.
Example
See also