BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlcc::Queue< TYPE >::InitialCapacity Struct Reference

#include <bdlcc_queue.h>

Public Member Functions

 InitialCapacity (int i)
 Create an object with the specified value 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);
Definition bdlcc_queue.h:476
Definition bdlcc_queue.h:562

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

Constructor & Destructor Documentation

◆ InitialCapacity()

template<class TYPE >
bdlcc::Queue< TYPE >::InitialCapacity::InitialCapacity ( int  i)
inlineexplicit

Member Data Documentation

◆ d_i

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

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