Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Static Public Attributes

bslstl::Optional_PropagatesAllocator< TYPE, ANY_TYPE > Struct Template Reference

#include <bslstl_optional.h>

Inheritance diagram for bslstl::Optional_PropagatesAllocator< TYPE, ANY_TYPE >:
bsl::integral_constant< bool, bslma::UsesBslmaAllocator< TYPE >::value &&bsl::is_const< TYPE >::value &&bsl::is_same< ANY_TYPE, bsl::remove_cv< TYPE >::type >::value >

List of all members.

Public Types

typedef bool value_type
typedef integral_constant type

Public Member Functions

BSLS_KEYWORD_CONSTEXPR operator value_type () const BSLS_KEYWORD_NOEXCEPT

Static Public Attributes

static
BSLS_KEYWORD_CONSTEXPR_MEMBER
bool 
value

Detailed Description

template<class TYPE, class ANY_TYPE>
struct bslstl::Optional_PropagatesAllocator< TYPE, ANY_TYPE >

This metafunction is derived from bsl::true_type if TYPE is an allocator-aware const type, and if ANY_TYPE is the same as TYPE, minus the cv qualification. This trait is used to enable a constructor overload for a const qualified allocator-aware ValueType taking an rvalue of optional of the non-const qualified ValueType. Such an overload needs to propagate the allocator.

See Component bslstl_optional


Member Typedef Documentation

typedef bool bsl::integral_constant< bool , t_VAL >::value_type [inherited]
typedef integral_constant bsl::integral_constant< bool , t_VAL >::type [inherited]

Member Function Documentation

BSLS_KEYWORD_CONSTEXPR bsl::integral_constant< bool , t_VAL >::operator value_type (  )  const [inherited]

Return t_VAL.


Member Data Documentation

BSLS_KEYWORD_CONSTEXPR_MEMBER bool bsl::integral_constant< bool , t_VAL >::value [static, inherited]

The documentation for this struct was generated from the following file: