Outline
Purpose
Provide a namespace for utility functions for STL functionality.
- Deprecated:
- Do not use directly.
Classes
Description
This component defines a class, bslstp::Util
, that provides a namespace for utility functions used to implement STL functionality in the bslstp
package.
Usage
This component is for internal use only.
◆ bslstp_Util
◆ copyContainerAllocator() [1/2]
template<class ALLOCATOR , int IS_BSLMA_ALLOC>
ALLOCATOR bslstp::Util::AllocatorUtil< ALLOCATOR, IS_BSLMA_ALLOC >::copyContainerAllocator |
( |
const ALLOCATOR & |
rhsAlloc | ) |
|
|
inlinestatic |
Return the appropriate allocator for use when copy-constructing a container. rhsAlloc
is intended to be the allocator from the container being copied. If isBslmaAlloc
is of type bsl::true_type
then ignore rhsAlloc
and return the default allocator. Otherwise, return rhsAlloc
unchanged.
◆ copyContainerAllocator() [2/2]
template<class ALLOCATOR >
ALLOCATOR bslstp::Util::AllocatorUtil< ALLOCATOR, 0 >::copyContainerAllocator |
( |
const ALLOCATOR & |
rhsAlloc | ) |
|
|
inlinestatic |
Return the appropriate allocator for use when copy-constructing a container. rhsAlloc
is intended to be the allocator from the container being copied. If isBslmaAlloc
is of type bsl::true_type
then ignore rhsAlloc
and return the default allocator. Otherwise, return rhsAlloc
unchanged.