Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

bdlcc::Queue< TYPE >::InitialCapacity Struct Reference

#include <bdlcc_queue.h>

List of all members.

Public Member Functions

 InitialCapacity (int i)

Public Attributes

unsigned int d_i

Detailed Description

template<class TYPE>
struct bdlcc::Queue< TYPE >::InitialCapacity

Enable uniform use of an optional integral constructor argument to specify the initial internal capacity (in items). For example,

           const Queue<int>::InitialCapacity NUM_ITEMS(8));
           Queue<int> x(NUM_ITEMS);

defines an instance x with an initial capacity of 8 items, but with a logical length of 0 items.

See Component bdlcc_queue


Constructor & Destructor Documentation

template<class TYPE>
bdlcc::Queue< TYPE >::InitialCapacity::InitialCapacity ( int  i  )  [inline, explicit]

< Create an object with the specified value i.


Member Data Documentation

template<class TYPE>
unsigned int bdlcc::Queue< TYPE >::InitialCapacity::d_i

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