i made an array of pointers to some struct called element. So after i make an table** i just set every pointer in array to null pointer and then later on i add elements. Now when i iterate i can't set my end() as null pointer because then it will stop iterating at first null pointer in the array and it won't find the potential elements after that null pointer.
This is how i created and filled my array in the beginning with nullptr:
table** = new element*[max_sz+1];
for(size_t i = 0; i <= max_sz; i++) table[i] = nullptr;
My begin iterator is first element* that is not a nullptr in the table.
So what should i set it to ? Any ideas ?