[#bsl-uses_allocator]
= xref:bsl.adoc[bsl]::uses&lowbar;allocator
:relfileprefix: ../
:mrdocs:

Meta&hyphen;function for detecting whether a type uses a given allocator&period;

== Synopsis

Declared in `&lt;bslmf&lowbar;usesallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;TYPE,
    class t&lowbar;ALLOCATOR&lowbar;TYPE&gt;
struct uses&lowbar;allocator
    : &sol;&ast; implementation-defined &ast;&sol;::type
----

== Description

This `struct` template implements a meta&hyphen;function to determine whether a (template parameter) `t&lowbar;TYPE` uses a given (template parameter) `t&lowbar;ALLOCATOR&lowbar;TYPE`&period; This `struct` derives from `bsl&colon;&colon;true&lowbar;type` if `t&lowbar;TYPE` uses `t&lowbar;ALLOCATOR&lowbar;TYPE` and from `bsl&colon;&colon;false&lowbar;type` otherwise&period; This meta&hyphen;function has the same syntax as the `uses&lowbar;allocator` meta&hyphen;function defined in the C&plus;&plus;11 standard &lsqb;allocator&period;uses&period;trait&rsqb;&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `&sol;&ast; implementation-defined &ast;&sol;::type`
| 
|===


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