Constructors
Synopses
Declared in <bdlcc_deque.h>
Create a container of objects of (template parameter) TYPE, with no high water mark, and use the specified clockType to indicate the epoch used for all time intervals (see {Supported Clock‐Types} in the component documentation). If basicAllocator is 0, the currently installed default allocator is used.
explicit
Deque(bslma::Allocator* basicAllocator = 0);
Same as the preceding overload, using the specified clockType for timed operations.
explicit
Deque(
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Create a container of objects of (template parameter) TYPE, with the specified highWaterMark, and use the specified clockType to indicate the epoch used for all time intervals (see {Supported Clock‐Types} in the component documentation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless highWaterMark > 0.
explicit
Deque(
std::size_t highWaterMark,
bslma::Allocator* basicAllocator = 0);
Create a container having the same value as the specified original object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Deque(
Deque<TYPE> const& original,
bslma::Allocator* basicAllocator = 0);
Same as the preceding overload, using the specified clockType for timed operations.
Deque(
std::size_t highWaterMark,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Create a container of objects of (template parameter) TYPE containing the sequence of elements in the specified range [begin .. end)], having no high water mark, and use the specified clockType to indicate the epoch used for all time intervals (see {Supported Clock‐Types} in the component documentation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that the items in the range are treated as const objects, copied without being modified.
template<class INPUT_ITER>
Deque(
INPUT_ITER begin,
INPUT_ITER end,
bslma::Allocator* basicAllocator = 0);
Same as the preceding overload, using the specified clockType for timed operations.
template<class INPUT_ITER>
Deque(
INPUT_ITER begin,
INPUT_ITER end,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Create a container of objects of (template parameter) TYPE containing the sequence of TYPE values in the specified range [begin .. end)] having the specified highWaterMark, and use the specified clockType to indicate the epoch used for all time intervals (see {Supported Clock‐Types} in the component documentation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless highWaterMark > 0. Note that if the number of elements in the range [begin, end)] exceeds highWaterMark, the effect will be the same as if the extra elements were added by forced pushes. Also note that the items in the range are treated as const objects, copied without being modified.
template<class INPUT_ITER>
Deque(
INPUT_ITER begin,
INPUT_ITER end,
std::size_t highWaterMark,
bslma::Allocator* basicAllocator = 0);
template<class INPUT_ITER>
Deque(
INPUT_ITER begin,
INPUT_ITER end,
std::size_t highWaterMark,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Created with MrDocs