Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::container::uses_allocator< T, Alloc > Struct Template Reference

Remark: Automatically detects if T has a nested allocator_type that is convertible from Alloc. More...

#include <scoped_allocator_fwd.hpp>

Inheritance diagram for boost::container::uses_allocator< T, Alloc >:
Collaboration diagram for boost::container::uses_allocator< T, Alloc >:

Public Types

typedef integral_constant
< bool, val > 
type
 

Detailed Description

template<typename T, typename Alloc>
struct boost::container::uses_allocator< T, Alloc >

Remark: Automatically detects if T has a nested allocator_type that is convertible from Alloc.

Meets the BinaryTypeTrait requirements ([meta.rqmts] 20.4.1). A program may specialize this type to derive from true_type for a T of user-defined type if T does not have a nested allocator_type but is nonetheless constructible using the specified Alloc.

Result: derived from true_type if Convertible<Alloc,T::allocator_type> and derived from false_type otherwise.

Member Typedef Documentation

typedef integral_constant<bool ,val> boost::integral_constant< bool , val >::type
inherited

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