Quick Links:

bal | bbl | bdl | bsl

bsl::allocator_traits< ALLOCATOR_TYPE * > Struct Template Reference

#include <bslma_allocatortraits.h>


Detailed Description

template<class ALLOCATOR_TYPE>
struct bsl::allocator_traits< ALLOCATOR_TYPE * >

TBD: improve comment This is an empty class specialization of allocator_traits for pointer types that (intentionally) does not define any of the traits typedefs. It's needed in order make unambiguous function overloads that take both a standard allocator by value and a bslma::Allocator *. By using the typedefs defined in allocator_traits in the signature of functions taking standard allocators, we can ensure that those overloads are not considered when using bslma-style allocators.

See Component bslma_allocatortraits


The documentation for this struct was generated from the following file: