[#BloombergLP-bslma-UsesBslmaAllocator_DeprecatedIf-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::UsesBslmaAllocator&lowbar;DeprecatedIf
:relfileprefix: ../../
:mrdocs:

Empty helper whose `check` may emit a deprecation warning&period;

== Synopsis

Declared in `&lt;bslma&lowbar;usesbslmaallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;bool&gt;
struct UsesBslmaAllocator&lowbar;DeprecatedIf;
----

== Description

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&period;

== 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`&period; Declared but not defined&semi; for metaprogramming only&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/UsesBslmaAllocator_DeprecatedIf-0a.adoc[`UsesBslmaAllocator&lowbar;DeprecatedIf&lt;true&gt;`] 
| Using this specialization of `UsesBslmaAllocator&lowbar;DeprecatedIf` yields a deprecation warning on compilers that support a deprecation annotation&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
