BloombergLP::bslma::UsesBslmaAllocator<bsl::optional<t_TYPE>>

Trait specialization: optional uses allocators when t_TYPE does.

Synopsis

Declared in <bslstl_optional.h>

template<class t_TYPE>
struct UsesBslmaAllocator<bsl::optional<t_TYPE>>
    : UsesBslmaAllocator<t_TYPE>

Base Classes

NameDescription
UsesBslmaAllocator<t_TYPE>Metafunction that is true_type if TYPE uses the bslma allocator idiom.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type Alias for the (template parameter) t_TYPE.

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.
operator t_TYPE Return a copy of the template argument t_VALUE.

Static Data Members

NameDescription
value The compile-time constant value of this metafunction.