27 auto it = mydeque.
begin();
28 while (it != mydeque.
end())
29 std::cout <<
" " << *it++;
30 std::cout << std::endl;
33 int main(
int argc,
const char * argv[]) {
38 mydeque.
split(
size_t(3), mydeque2);
46 std::cout <<
"Just after split:" << std::endl;
47 std::cout <<
"contents of mydeque:";
49 std::cout <<
"contents of mydeque2:";
54 std::cout <<
"Just after merge:" << std::endl;
55 std::cout <<
"contents of mydeque:";
57 std::cout <<
"contents of mydeque2:";
void push_front(const value_type &x)
Adds item at the beginning.
iterator begin() const
Returns iterator to beginning.
void concat(self_type &other)
Merges with content of another container.
void push_back(const value_type &x)
Adds item at the end.
value_type pop_front()
Deletes first item.
iterator end() const
Returns iterator to end.
value_type pop_back()
Deletes last item.
int main(int argc, const char *argv[])
bool split(const Pred &p, reference middle_item, self_type &other)
Chunked-sequence functor.