[#bsl-uses_allocator] = xref:bsl.adoc[bsl]::uses_allocator :relfileprefix: ../ :mrdocs: This `struct` template implements a meta‐function to determine whether a (template parameter) `t_TYPE` uses a given (template parameter) `t_ALLOCATOR_TYPE`. This `struct` derives from `bsl::true_type` if `t_TYPE` uses `t_ALLOCATOR_TYPE` and from `bsl::false_type` otherwise. This meta‐function has the same syntax as the `uses_allocator` meta‐function defined in the C++11 standard [allocator.uses.trait]. == Synopsis Declared in `<bslmf_usesallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ALLOCATOR_TYPE> struct uses_allocator : /* implementation-defined */::type ---- == Base Classes [cols="1,4"] |=== | Name| Description | `/* implementation-defined */::type` | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#