# Linux Kernel Module Cheat

##### 27.3.8.1. C++ iterators

https://stackoverflow.com/questions/37031805/preparation-for-stditerator-being-deprecated/38103394

userland/cpp/custom_iterator.cpp: there is no way to easily define a nice custom iterator, you just have to wrap existing iterators and add a gazillion wrapper methods:

- https://stackoverflow.com/questions/8054273/how-to-implement-an-stl-style-iterator-and-avoid-common-pitfalls

- https://stackoverflow.com/questions/3582608/how-to-correctly-implement-custom-iterators-and-const-iterators

- https://stackoverflow.com/questions/6471019/can-should-i-inherit-from-an-stl-iterator