How to set objects in 2D vector to null pointer [C++]
<p>Imagine </p>

<pre><code>std::vector&lt;std::vector&lt;Objekt&gt;&gt; m_pole;
</code></pre>

<p>We want to set every object to nullptr. But following code produces 2 errors.
Vars row and col are not declared.</p>

<pre><code>    std::vector&lt;std::vector&lt;Objekt&gt;&gt;::std::iterator row;
    std::vector&lt;Objekt&gt;::std::iterator col;

    for(row = m_pole.begin(); row != m_pole.end(); row++) {
        for(col = row-&gt;begin(); col != row-&gt;end(); col++) {
            m_pole[row][col] = nullptr;
        }
    }
</code></pre>

<p>Any ideas how to solve this problem ?
Thanks for answers, MK.</p>
