BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma::AllocatorUtil_Traits< t_ALLOCATOR, t_TYPE > Struct Template Reference

#include <bslma_allocatorutil.h>

Inheritance diagram for bslma::AllocatorUtil_Traits< t_ALLOCATOR, t_TYPE >:

Public Member Functions

 BSLMF_ASSERT (! bsl::is_const< t_TYPE >::value)
 
 BSLMF_ASSERT (! bsl::is_volatile< t_TYPE >::value)
 

Detailed Description

template<class t_ALLOCATOR, class t_TYPE>
struct bslma::AllocatorUtil_Traits< t_ALLOCATOR, t_TYPE >

Extend the notion of allocator_traits to apply to both standard allocator and to pointer-to-memory-resource types. If the (template parameter) t_ALLOCATOR is a non-pointer type (i.e., an allocator class), then inherits from bsl::allocator_traits<t_ALLOCATOR>::rebind_traits<t_TYPE>. However, if t_ALLOCATOR is a pointer type, then inherits from bsl::allocator_traits<bsl::allocator<t_TYPE>> for pointers to classes derived from bslma::Allocator and from bsl::allocator_traits<bsl::polymorphic_allocator<t_TYPE>> for pointers to other classes derived from bsl::memory_resource. This primary template is for non-pointer t_ALLOCATOR template arguments.

Member Function Documentation

◆ BSLMF_ASSERT() [1/2]

template<class t_ALLOCATOR , class t_TYPE >
bslma::AllocatorUtil_Traits< t_ALLOCATOR, t_TYPE >::BSLMF_ASSERT ( ! bsl::is_const< t_TYPE >::value  )

◆ BSLMF_ASSERT() [2/2]

template<class t_ALLOCATOR , class t_TYPE >
bslma::AllocatorUtil_Traits< t_ALLOCATOR, t_TYPE >::BSLMF_ASSERT ( ! bsl::is_volatile< t_TYPE >::value  )

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