January 2018
Intermediate to advanced
374 pages
9h 53m
English
As mentioned, STL differentiates iterators by which categories they fulfill. This is achieved by defining the following five specific types in the iterator class:
For the IntIterator, the following types would be defined:
class IntIterator {public: ... using difference_type = int; using value_type = int; using reference = int&; using pointer = int*; using iterator_category = std::forward_iterator_tag; ...}
It might ...