...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
back_extended_deque
allows
a deque
to be back extended. It shares the same properties as the deque
.
See deque
template <typename Deque, typename T> struct back_extended_deque;
Parameter |
Description |
Default |
---|---|---|
|
Deque type |
|
|
Element type |
Note | |
---|---|
|
Notation
D
A back_extended_deque
type
e
Heterogeneous value
N
Semantics of an expression is defined only where it differs from, or is not defined in Bidirectional Sequence.
Expression |
Semantics |
---|---|
|
Extend |
|
The Nth element from the beginning of the sequence; see |
Note | |
---|---|
See |
typedef deque<int, float> initial_deque; initial_deque d(12, 5.5f); back_extended_deque<initial_deque, int> d2(d, 999); std::cout <<at_c
<0>(d2) << std::endl; std::cout <<at_c
<1>(d2) << std::endl; std::cout <<at_c
<2>(d2) << std::endl;