Constructors
Declared in <bslstl_optional.h>
Create a disengaged Optional_Base object.
Optional_Base();
» more...
Create an Optional_Base object having the value of the specified original object.
Optional_Base(Optional_Base const& original);
» more...
Create a disengaged Optional_Base object.
Optional_Base(bsl::nullopt_t nullopt);
» more...
Create an Optional_Base object.
Optional_Base(BloombergLP::bslmf::MovableRef<Optional_Base> original) noexcept(/* see-below */);
» more...
Create a disengaged Optional_Base object.
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_ConstructFromForwardRef tag,
t_ANY_TYPE&& value);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_CopyConstructFromOtherOptional tag,
Optional_Base<t_ANY_TYPE> const& original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_CopyConstructFromStdOptional tag,
std::optional<t_ANY_TYPE> const& original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_MoveConstructFromOtherOptional tag,
BloombergLP::bslmf::MovableRef_Deduced<Optional_Base<t_ANY_TYPE>> original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_MoveConstructFromOtherOptional tag,
BloombergLP::bslmf::MovableRef_Deduced<Optional_Base<t_ANY_TYPE>> original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
BloombergLP::bslstl::Optional_MoveConstructFromStdOptional tag,
std::optional<t_ANY_TYPE>&& original);
» more...
Create an Optional_Base object.
template<class... t_ARGS>
explicit
Optional_Base(
std::in_place_t inPlace,
t_ARGS&&... args);
» more...
Create a disengaged Optional_Base object.
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
bsl::nullopt_t nullopt);
» more...
Create an Optional_Base object.
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslmf::MovableRef<Optional_Base> original);
» more...
Create an Optional_Base object.
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
Optional_Base const& original);
» more...
Create an Optional_Base object, which contains the result of invocation of the specified invocable with the specified arg.
template<
class t_INVOCABLE,
class t_ARG>
Optional_Base(
Optional_InvokeConstructorTag tag,
t_INVOCABLE&& invocable,
t_ARG&& arg);
» more...
Create an Optional_Base object.
template<
class t_INIT_LIST_TYPE,
class... t_ARGS>
Optional_Base(
std::in_place_t inPlace,
std::initializer_list<t_INIT_LIST_TYPE> il,
t_ARGS&&... args);
» more...
Create an Optional_Base object whose contained value is initialized by forwarding from the specified value.
template<class t_ANY_TYPE>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslstl::Optional_ConstructFromForwardRef tag,
t_ANY_TYPE&& value);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslstl::Optional_CopyConstructFromOtherOptional tag,
Optional_Base<t_ANY_TYPE> const& original);
» more...
Create an optional from original using allocator.
template<class t_ANY_TYPE>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslstl::Optional_CopyConstructFromStdOptional tag,
std::optional<t_ANY_TYPE> const& original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslstl::Optional_MoveConstructFromOtherOptional tag,
BloombergLP::bslmf::MovableRef_Deduced<Optional_Base<t_ANY_TYPE>> original);
» more...
Create an Optional_Base object.
template<class t_ANY_TYPE>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
BloombergLP::bslstl::Optional_MoveConstructFromStdOptional tag,
std::optional<t_ANY_TYPE>&& original);
» more...
Create an Optional_Base object whose contained value is initialized from the specified args.
template<class... t_ARGS>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
std::in_place_t inPlace,
t_ARGS&&... args);
» more...
Create an Optional_Base object whose contained value is initialized from the specified il and args.
template<
class t_INIT_LIST_TYPE,
class... t_ARGS>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
std::in_place_t inPlace,
std::initializer_list<t_INIT_LIST_TYPE> il,
t_ARGS&&... args);
» more...
| Name | Description |
|---|---|
| original | source optional used to initialize this object |
| nullopt | disengaged-optional tag; value is unused |
| allocatorArg | tag selecting the allocator-extended constructor |
| allocator | allocator used to supply memory |
| tag | tag selecting this constructor overload |
| value | value compared with or used to initialize the optional |
| inPlace | tag selecting in-place construction of the contained value |
| args | arguments forwarded to construct the contained value |
| invocable | callable invoked to produce the contained value |
| arg | argument forwarded to construct the contained value |
| il | initializer list forwarded to construct the contained value |