Top "Stdany" questions

The class any is a type-safe container for single values of any type.

C++ std::map holding ANY type of value

Basically I want MyClass that holds a Hashmap that maps Field name(string) to ANY type of Value.. For this …

c++ templates stl stdmap stdany
Does C++11 standard provide something like boost::any?

for example boost::function is moved almost entirely to std::function, the same is with boost::shared_ptr But I …

c++ c++11 boost boost-any stdany
When should I use std::any

Since C++17 std::any is introduced. One can now write code like this #include <iostream> #include <any&…

c++ c++17 stdany