MCPcopy Create free account
hub / github.com/Apress/design-patterns-in-modern-cpp / begin

Method begin

Behavioral/Iterator/iterator.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 iterator begin()
110 {
111 Node<T>* n = root;
112
113 if (n)
114 while (n->left)
115 n = n->left;
116 return iterator{ n };
117 }
118
119 // expose as a traversal object
120 // todo: make this inorder

Callers 12

beginMethod · 0.45
std_iteratorsFunction · 0.45
binary_tree_iteratorFunction · 0.45
ubsubscribeMethod · 0.45
notifyMethod · 0.45
removeListenerMethod · 0.45
notifyListenersMethod · 0.45
notifyMethod · 0.45
unsubscribeMethod · 0.45
unsubscribeMethod · 0.45
visitMethod · 0.45
visitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected