24 #ifndef PPL_EList_inlines_hh
25 #define PPL_EList_inlines_hh 1
31 namespace Implementation {
42 next->insert_before(obj);
48 prev->insert_after(obj);
54 position->insert_before(obj);
85 return begin() == end();
99 for (
iterator i = begin(), lend = end(), next; i != lend; i = next) {
105 template <
typename T>
121 #endif // !defined(PPL_EList_inlines_hh)
EList()
Constructs an empty list.
iterator begin()
Returns an iterator pointing to the beginning of the list.
void push_back(T &obj)
Pushes obj to the back of the list.
Doubly_Linked_Object * erase()
Erases *this from the chain and returns a pointer to the next element.
void push_front(T &obj)
Pushes obj to the front of the list.
iterator end()
Returns an iterator pointing one past the last element in the list.
A (base) class for doubly linked objects.
A class providing iterators for embedded lists.
bool empty() const
Returns true if and only if the list is empty.
bool OK() const
Checks if all the invariants are satisfied.
The entire library is confined to this namespace.
~EList()
Destructs the list and all the elements in it.
A simple kind of embedded list (i.e., a doubly linked objects where the links are embedded in the obj...
iterator insert(iterator position, T &obj)
Inserts obj just before position and returns an iterator that points to the inserted object...