#include
#include
#include
#include
using namespace std;
template
void print(T& c){
for( typename T::iterator i = c.begin(); i != c.end(); i++ ){
std::cout << *i << endl;
}
}
int main( )
{
const int data[] = { 1, 1, 2, 3, 5 };
list original( data,data + sizeof( data ) / sizeof( data[0] ) );
// make a vector from a list
vector vector_copy( original.begin(), original.end() );
// show results
print( original);
print( vector_copy);
}