BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlcc::BoundedQueue_Node< TYPE, RECLAIMABLE > Struct Template Reference

Detailed Description

template<class TYPE, bool RECLAIMABLE>
struct bdlcc::BoundedQueue_Node< TYPE, RECLAIMABLE >

This class implements the queue's node. A node stores an instance of the specified (template parameter) TYPE, and provides an accessor isUnconstructed that indicates whether the value of the node was correctly constructed. If isUnconstructed is false, then the value (d_value) refers to a valid object. If isUnconstructed is true then d_value does not refer to a valid object, it does not represent a value in this queue, and the destructor of d_value should not be called. The specified (template parameter) type RECLAIMABLE is used to provide a compile time optimization for the footprint of this template when the value of isUnconstructed is known at compile-time. If RECLAIMABLE is false then it can be determined at compile time that the construction of TYPE will uncoditionally succeed (e.g., it IsBitwiseCopyable), and the isUnconstructed property does not require a data member to be accessed at run-time.


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