Hi All,

I have the following code which inserts elements into a
vector<list<vector<int> > > .

void bucketInsert(int n, vector<list<vector<int> > > &vliBuckets)
{
list<vector<int> > templst;
list<vector<int> >::iterator it;
vector<int> newvec(3);
int t = n%10;

newvec.push_back(n);
newvec.push_back(int(n/10));
newvec.push_back(0);
vliBuckets[t].push_back(newvec);

}

I am running into problems when I am trying to display the elements which I store. Could anybody help with a code snippet doing this.
Also, in case like the above one how do you check memory storage. In other words how can one see the elements which are getting stored.
Any help will be appreciated.
Thanks.