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

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>This metafunction is derived from true_type if TYPE adheres to the bslma allocator usage idiom and false_type otherwise. Note that this trait must be explicitly associated with a type in order for this metafunction to return true; simply having a constructor that implicitly converts bslma::Allocator * to TYPE is deprecated as a means of indicating that a type follows the bslma allocator usage idiom.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type

Member Functions

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

Static Data Members

Name
value