#include #include #include #include #include using namespace std;
INT main (void) {Vector Coll; Coll.reserve (4); Coll.push_back ("hey!"); Coll.push_back ("how"); Coll.push_back ("are"); Coll.push_Back ("You!"); COPY (COLL.BEGIN (), COLL.End (), Ostream_iterator (cout, ")); cout << Endl; cout <<" coll_size: << Coll.size () << Endl; cout << "coll_capacity:" << coll.capacity () << Endl; cout << "COLL_MAX_SIZE: <<" coll.max_size () << Endl; Coll.insert (Find (Coll. Begin (), coll.end (), "how", "jie,"); copy (coll.begin (), coll.end (), ostream_iterator (cout, ")); cout << Endl; cout << "COLL_SIZE: << COLL.SIZE () << endl; cout <<" coll_capacity: << "coll.capacity () << Endl; cout <<" COLL_MAX_SIZE: << Coll.max_size () << Endl; Vector (COLL) .Swap (COLL); COPY (COLL.BEGIN (), COLL.End (), Ostream_iterator (Cout, ")); cout << Endl; COUT << "COLL_SIZE:" << Coll.Size () << endl; cout << "coll_capacity: << Coll.capacity () << Endl; cout <<" COLL_MAX_SIZE: << COLL.MAX_SIZE () << endl; return 0;}