N
none
Hi,
Consider the following piece of code:
int t[]={1,2,3,4,5,6};
vector<int> v;
std::copy (t, t+sizeof(t)/sizeof(t[0]), std::back_inserter (v));
Could someone explain me why we can pass "t" as an argument to the copy
method though it is expecting an iterator as its firts argument like
written in the STL doc:
iterator copy( iterator start, iterator end, iterator dest );
Thanks,
JF
Consider the following piece of code:
int t[]={1,2,3,4,5,6};
vector<int> v;
std::copy (t, t+sizeof(t)/sizeof(t[0]), std::back_inserter (v));
Could someone explain me why we can pass "t" as an argument to the copy
method though it is expecting an iterator as its firts argument like
written in the STL doc:
iterator copy( iterator start, iterator end, iterator dest );
Thanks,
JF