Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This version of Boost is under active development. You are currently in the develop branch. The current version is 1.90.0.
boost::container::make_obj_using_allocator
// In header: <boost/container/uses_allocator_construction.hpp> template<typename T, typename AllocArg, class... Args> T make_obj_using_allocator(AllocArg && alloc_arg, Args &&... args);
Effects: eates an object of the given type T by means of uses-allocator construction (see uses_allocator), where:
alloc_arg is the allocator argument whose type AllocArg will be used to evaluate uses_allocator<T, AllocArg>::value
args are the arguments to pass to T's constructor.
Returns: The newsly created object of type T
Throws: Any exception thrown by the constructor of T.