BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma::UsesBslmaAllocator< TYPE > Struct Template Reference

#include <bslma_usesbslmaallocator.h>

Inheritance diagram for bslma::UsesBslmaAllocator< TYPE >:
bsl::integral_constant< bool, UsesBslmaAllocator_Imp< TYPE >::value > bslalg::TypeTraitUsesBslmaAllocator::Metafunction< TYPE >

Additional Inherited Members

- Public Types inherited from bsl::integral_constant< bool, UsesBslmaAllocator_Imp< TYPE >::value >
typedef bool value_type
 
typedef integral_constant type
 
- Public Member Functions inherited from bsl::integral_constant< bool, UsesBslmaAllocator_Imp< TYPE >::value >
 integral_constant ()=default
 
 integral_constant (const integral_constant &)=default
 
integral_constant operator= (const integral_constant &)=default
 
 ~integral_constant ()=default
 
BSLS_KEYWORD_CONSTEXPR operator value_type () const BSLS_KEYWORD_NOEXCEPT
 Return t_VAL.
 
- Static Public Attributes inherited from bsl::integral_constant< bool, UsesBslmaAllocator_Imp< TYPE >::value >
static const bool value
 

Detailed Description

template<class TYPE>
struct bslma::UsesBslmaAllocator< 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.


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