Modern C++ idoms and recipes

meshell
59.2K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

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.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content