BDE 4.14.0 Production release
Loading...
Searching...
No Matches

Typedefs

typedef bslstp::Util bslstp_Util
 This alias is defined for backward compatibility.
 

Functions

static ALLOCATOR bslstp::Util::AllocatorUtil< ALLOCATOR, IS_BSLMA_ALLOC >::copyContainerAllocator (const ALLOCATOR &rhsAlloc)
 
static ALLOCATOR bslstp::Util::AllocatorUtil< ALLOCATOR, 0 >::copyContainerAllocator (const ALLOCATOR &rhsAlloc)
 

Detailed Description

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.

Typedef Documentation

◆ bslstp_Util

Function Documentation

◆ 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.