Why would you iterate and not use the standard copy algorithm?
std::copy( vector.begin(), vector.end(), std::back_inserter( list ) );
Why would you iterate and not use the standard copy algorithm?
std::copy( vector.begin(), vector.end(), std::back_inserter( list ) );