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

Name

Description

check

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

Specializations

Name

Description

UsesBslmaAllocator_DeprecatedIf<true>

Using this specialization of UsesBslmaAllocator_DeprecatedIf yields a deprecation warning on compilers that support a deprecation annotation.

Created with MrDocs