Back
Close

Modern C++ idoms and recipes

meshell
50.1K views

Any type

Possible solution

Note that the implementation you had to refactor does not delete the elements in the vector properly. By using any you don't have to worry no new and delete is needed.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io