#include
#include
#include
#include
#include
using namespace std;
template
inline void afficher_elements(const T &coll, const char* optcstr="")
{
typename T::const_iterator pos;
std::cout << optcstr;
for (pos=coll.begin(); pos!=coll.end(); ++pos) {
std::cout << *pos << ' ';
}
std::cout << std::endl;
}
int main()
{
list coll;
vector coll2;
for (int i=1; i<=9; ++i)
{
coll.push_back(i);
}
afficher_elements(coll,"Liste: ");
return 0;
}