boost::type_erasure::is_empty
// In header: <boost/type_erasure/is_empty.hpp> template<typename T> bool is_empty(const T & arg);
Returns true for an empty any.
any