-
Notifications
You must be signed in to change notification settings - Fork 0
Home
DNKpp edited this page Jun 29, 2021
·
4 revisions
This wiki shall provide a quick overview how to define your custom iterator. To do this, you have to inherit from iterator_interface and implement some methods yourself. All other boilerplate is done for you, depending on what you need. iterator_interface currently only aims to fulfill the requirements of the c++20 iterators.
Be aware, that this library only takes care of the boilerplate and the syntactically correctness. Users must get sure, that their iterators actually fullfil the implied semantically correctness.
For more in depth details look at the sub-pages.
Please note, that custom types highly profit if their provided functions are declared as constexpr and/or noexcept.