Modern C++ idoms and recipes

meshell
32.4K 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

C++17 added the std::any type to the standard library. It is designed to hold variables of any type and provides methods for type-safe inspection and access.

Exercise

Refactor the following code to use std::any.
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content