6 ms·
for the first one, there is no direct equivalent, but you can directly loop over any [Derived] collection as a reference to [Base]
by andijcr 5y ago
for the first one, there is no direct equivalent, but you can directly loop over any [Derived] collection as a reference to [Base]
- s3cur3 5y agoTrue! It’s only an annoyance when you need to pass a std::vector<Derived> to a function that only accepts std::vector<Base>.