BloombergLP::bslma::UsesBslmaAllocator_DeprecatedIf

For compilers that support a deprecation annotation, this empty struct has a static check function that yields a deprecation warning when called (including within an unevaluated context) if this class is instantiated with a true argument, but not if instantiated with a false argument.

Synopsis

Declared in <bslma_usesbslmaallocator.h>

template<bool>
struct UsesBslmaAllocator_DeprecatedIf;

Static Member Functions

NameDescription
check Ignore the specified message and return a char. Declared but not defined; for metaprogramming only.

Specializations

NameDescription
UsesBslmaAllocator_DeprecatedIf<true> Using this specialization of UsesBslmaAllocator_DeprecatedIf yields a deprecation warning on compilers that support a deprecation annotation.