![]() |
Home | Libraries | People | FAQ | More |
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.