Relative Content

Tag Archive for c++ooptemplatesnestediterator

Implementing iterator for map implementation in C++

I implemented a RedBlackTree from scratch and now I want to implement an ordered map from scratch using that RBT.
I have a class RBT and inside of it a struct called TreeNode.
I have a separate class Map and inside of it a class called Iterator.
The problem is that when I try to declare a TreeNode pointer inside my Iterator it won’t recognize it