Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsl::List_AllocAndSizeWrapper< VALUE, ALLOCATOR > Class Template Reference
[Component bslstl_list]

#include <bslstl_list.h>

List of all members.

Public Member Functions

 List_AllocAndSizeWrapper (const NodeAlloc &basicAllocator, size_type size)
size_type & size ()
const size_type & size () const

Detailed Description

template<class VALUE, class ALLOCATOR>
class bsl::List_AllocAndSizeWrapper< VALUE, ALLOCATOR >

This struct is a wrapper around the allocator and size data members of a list. It takes advantage of the empty-base optimization (EBO) so that if the allocator is stateless, it takes up no space.

TBD: This struct should eventually be replaced by the use of a general EBO-enabled component that provides a pair-like interface. (A properly-optimized tuple would do the job.)

See Component bslstl_list


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