30template <
class T> T any_cast(
const any& operand) {
return std::any_cast<T>(operand); }
31template <
class T> T any_cast(any& operand) {
return std::any_cast<T>(operand); }
32template <
class T> T any_cast(any&& operand) {
return std::any_cast<T>(operand); }
33template <
class T>
const T* any_cast(
const any* operand)
noexcept
35 return std::any_cast<T>(operand);
37template <
class T> T* any_cast(any* operand)
noexcept {
return std::any_cast<T>(operand); }
38using bad_any_cast = std::bad_any_cast;
39inline bool is_empty(
const any& a) {
return !a.has_value(); }