title: C++ Tridimensional Vector?
body: <p>I have a function that searches for some data and returns a vector:</p>
  
  <pre><code>vector&lt;int&gt; findMyData(int byID)
  {
    vector&lt;int&gt; tempVect;
    // do some search...
    for ( each data found )
      tempVect.push_back( the data );
  
    return tempVect;
  }
  </code></pre>
  
  <p>Now I have to repeat this search for x rows and y columns, so I'd end up having a bidimensional array of vectors. Am I correct if I say that it could well be a tridimensional vector?</p>
  
  <p>Example:</p>
  
  <pre><code>vector&lt;vector&lt;vector&lt;int&gt;&gt;&gt; myDatabase;
  </code></pre>
  
  <p>The first index should be the row, second index should be the column and the data contained at the x/y point is the vector returned by my function, so the third index is the  number I'll read at the end of the story...</p>
  
  <p>So, how do I fill the database?</p>
  
  <pre><code>for (int x=0; x&lt;100; ++x)
    for (int y=0; y&lt;50; ++y)
      myDatabase .... &lt;-- what's the correct syntax to fill this vector?
  </code></pre>