Hi!
just want to know whats the best to use (std::copy or push_back)
this:
std::copy(buf.begin()+pos, buf.begin()+pos+length,
data.begin() )
or :
for (unsigned char size_t index=pos; index < pos+length ; index++)
{
data.push_back(getBufData(index));
}
Also, do i really need to use data.reserve before std::copy
just want to know whats the best to use (std::copy or push_back)
this:
std::copy(buf.begin()+pos, buf.begin()+pos+length,
data.begin() )
or :
for (unsigned char size_t index=pos; index < pos+length ; index++)
{
data.push_back(getBufData(index));
}
Also, do i really need to use data.reserve before std::copy