library_base::const_iterator
class
In the terminology of the STL, the library_entry::const_iterator
class
is an Input Iterator but not a Forward Iterator. This means that multiple
iterators on the same library will not work as expected.
This is the default constructor. It is undefined behaviour to dereference or increment the default constructed
library_base::const_iterator
.
This constructor creates an iterator on library lb and with a library entry implementation of val. The constructor takes ownership of val, which must have been allocated using
new
; it does not take ownership of lb. Typically, this function should only be called by thebegin
function of classes derived fromlibrary_base
.
Compare two iterators. It is undefined behaviour to compare two iterators from different libraries.
Dereferences an iterator to retrieve the current
library_entry
. It is undefined behaviour to dereference an iterator that compares equal to the end iterator of that library.
The prefix and postfix increment operators move the iterator on to point to the next entry in the library. If there are no further entries in the library, the iterator will compare equal to the library's end iterator.