[#BloombergLP-bslma-UsesBslmaAllocator_DeprecatedIf-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::UsesBslmaAllocator_DeprecatedIf :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<bool> struct UsesBslmaAllocator_DeprecatedIf; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/UsesBslmaAllocator_DeprecatedIf-0f/check.adoc[`check`] | Ignore the specified `message` and return a `char`. Declared but not defined; for metaprogramming only. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/UsesBslmaAllocator_DeprecatedIf-0a.adoc[`UsesBslmaAllocator_DeprecatedIf<true>`] | Using this specialization of `UsesBslmaAllocator_DeprecatedIf` yields a deprecation warning on compilers that support a deprecation annotation. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#