std::vector < type > x;
type element;
x.push_back (element); //one element added in the end
//just iterate over all elements and call a func on each element
for (std::vector<type > ::const_iterator it = x.begin();it != x.end();++it)
{
do_something(*it);
}