Mega Code Archive
Demonstrating STL vector copying constructors
#include
#include
#include
using namespace std;
int main()
{
char name[] = "abcedfghijklmn";
vector George(name, name + 6);
vector son1(George); // Uses copy constructor
assert (son1 == George);
return 0;
}