Skip to content
Search

Boost:Any

lastmod 2015-04-07created 2015-04-062 edits

Can store any kind of information. (However, the copy constructor must be supported.)

How to use

boost::any_cast
Access data with any_cast<data type>.
boost::bad_any_cast
Thrown as an exception when the data type (Type) of the stored data does not match.

Favorite site