66 [[nodiscard]]
bool empty(
void )
const;
120 [[nodiscard]]
const T &
head(
void )
const;
124 [[nodiscard]]
const T &
tail(
void )
const;
167 return( f_L.rbegin() );
171 return( f_L.rend() );
194#include "ADS/queue/impl/Dequeue.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The LIST of the book: a SEQUENCE [see ADT.h] realized as a bidirectional circular list of cells with ...
a DEQUEUE on a bidirectional list with pointers
Definition Dequeue.h:59
T Item
the type of the items
Definition Dequeue.h:63
const T & head(void) const
the item at the head
typename List< T >::reverse_iterator reverse_iterator
the iterator on the items, backwards
Definition Dequeue.h:145
const_iterator begin(void) const
the constant iterator on the first item
Definition Dequeue.h:154
void push_back(const T &v)
insertTail(), for std::back_inserter
Definition Dequeue.h:175
void insertTail(const T &v)
puts at the tail, before the sentinel of the list
typename List< T >::const_iterator const_iterator
the iterator on the constant items
Definition Dequeue.h:143
const_iterator cbegin(void) const
the constant iterator on the first item
Definition Dequeue.h:158
std::ptrdiff_t difference_type
the type of the distances
Definition Dequeue.h:135
const_iterator cend(void) const
the constant iterator past the last item
Definition Dequeue.h:160
T removeTail(void)
removes the item at the tail and returns it
const T & const_reference
a constant reference to an item
Definition Dequeue.h:139
T removeHead(void)
removes the item at the head and returns it
const T & tail(void) const
the item at the tail
iterator begin(void)
the iterator on the first item
Definition Dequeue.h:150
const_reverse_iterator rend(void) const
the constant iterator before the first item, backwards
Definition Dequeue.h:170
std::size_t size_type
the type of the sizes
Definition Dequeue.h:133
void insertHead(const T &v)
puts at the head, insert( head() , v ) of the list
const_iterator end(void) const
the constant iterator past the last item
Definition Dequeue.h:156
const_reverse_iterator rbegin(void) const
the constant iterator on the last item, backwards
Definition Dequeue.h:166
typename List< T >::const_reverse_iterator const_reverse_iterator
the iterator on the constant items, backwards
Definition Dequeue.h:147
typename List< T >::iterator iterator
the iterator on the items
Definition Dequeue.h:141
T value_type
the type of the items
Definition Dequeue.h:131
void push_front(const T &v)
insertHead(), for std::front_inserter
Definition Dequeue.h:178
iterator end(void)
the iterator past the last item
Definition Dequeue.h:152
bool empty(void) const
true if there is no item
T & reference
a reference to an item
Definition Dequeue.h:137
reverse_iterator rbegin(void)
the iterator on the last item, backwards
Definition Dequeue.h:162
reverse_iterator rend(void)
the iterator before the first item, backwards
Definition Dequeue.h:164
a SEQUENCE realized as a bidirectional circular list with a sentinel, its cells from a pool if Pooled
Definition List.h:118
Iterator< true > const_iterator
the iterator on the constant items
Definition List.h:324
std::reverse_iterator< iterator > reverse_iterator
the iterator on the items, backwards
Definition List.h:326
Iterator< false > iterator
the iterator on the items
Definition List.h:322
std::reverse_iterator< const_iterator > const_reverse_iterator
the iterator on the constant items, backwards
Definition List.h:328