C++ Language/Type/Variant/AnyVariant

A variable  whose type is   can store values of differing types at different points in time. After assigning, that   value can be accessed by. An uninitialized any-variable will be in a special "no value" state that will be reported by.

Additional information about any-variant (includes interactive examples)