J
joe
Brain Block.
I thought there was a way to do this in less lines (1 line?):
std::vector<boost::shared_ptr<T> > m_vec;
for (int i =0; i<totalSize; ++i)
{
m_vec.push_back(new T);
}
but my brain isn't letting me remember how right now. Anyone out
there want to help?
Joe C
I thought there was a way to do this in less lines (1 line?):
std::vector<boost::shared_ptr<T> > m_vec;
for (int i =0; i<totalSize; ++i)
{
m_vec.push_back(new T);
}
but my brain isn't letting me remember how right now. Anyone out
there want to help?
Joe C