#include "hashmap.hpp"
#include "hashset.hpp"
#include "iterator.hpp"
Go to the source code of this file.
◆ ITERATOR_CC
◆ operator<<()
Outputs the iterator object to an output stream.
- Template Parameters
-
T | The type for the iterator's return value. |
- Parameters
-
out | The output stream. |
it | The iterator object. |
- Returns
- The output stream.
Definition at line 26 of file iterator.ipp.
27 {
29 out << "[ ";
31 if (
flag) out <<
", ";
34 }
35 return out << " ]";
36}
The list class represents a linked list.
◆ iterate() [1/2]
Generates an iterator for a container of type hashset<T>.
- Template Parameters
-
T | The type of the elements in the container. |
- Parameters
-
- Returns
- An iterator object for the hashset container.
Definition at line 99 of file iterator.ipp.
◆ iterate() [2/2]
Generates an iterator for a container of type hashmap<T, U>.
- Template Parameters
-
T | The type of the elements in the container. |
U | The type of the values in the hashmap. |
- Parameters
-
- Returns
- An iterator object for the hashmap container.
Definition at line 166 of file iterator.ipp.