Newer
Older
* Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.net)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.net/LICENSE.txt
*
*
*/
#ifndef PRINTLIST_H_
#define PRINTLIST_H_
// STL
#include <list>
#include <string>
#include <iostream>
void printList (std::list<size_t> const& mylist, std::string const& title)
{
std::cout << title << std::endl;
for (std::list<size_t>::const_iterator my_it (mylist.begin());
my_it != mylist.end(); my_it++) {
std::cout << *my_it << " ";
}
std::cout << std::endl;
}
#endif /* PRINTLIST_H_ */