BloombergLP::bslstl::Optional_Base::Optional_Base

Create an Optional_Base object whose contained value is initialized from the specified args.

Synopsis

Declared in <bslstl_optional.h>

template<class... t_ARGS>
Optional_Base(
    std::allocator_arg_t allocatorArg,
    allocator_type allocator,
    std::in_place_t inPlace,
    t_ARGS&&... args);

Description

Use the specified allocator to supply memory.

Parameters

NameDescription
allocatorArgtag selecting the allocator-extended constructor
allocatorallocator used to supply memory
inPlacetag selecting in-place construction of the contained
argsarguments forwarded to construct the contained value