C++17 introduces the object container std::any
, based on the boost library boost::any
.
My question is: Is the standardized any
equivalent to the boost version, or are there differences?
A similar question has been posted about variant
, and some differences exist in that case, but I could not find references about any
.
EDIT: A difference I could see is the availability of the methods emplace
. More than a difference in the API I'm interested to the differences between the behavior and the guarantees. For instance, different allocations would be significant for me.