| 465 | /// Performs *any_cast<add_const_t<remove_reference_t<ValueType>>>(&operand), or throws bad_any_cast on failure. |
| 466 | template<typename ValueType> |
| 467 | inline ValueType any_cast(const any& operand) |
| 468 | { |
| 469 | auto p = any_cast<typename std::add_const<typename std::remove_reference<ValueType>::type>::type>(&operand); |
| 470 | #ifndef ANY_IMPL_NO_EXCEPTIONS |
| 471 | if(p == nullptr) throw bad_any_cast(); |
| 472 | #endif |
| 473 | return *p; |
| 474 | } |
| 475 | |
| 476 | /// Performs *any_cast<remove_reference_t<ValueType>>(&operand), or throws bad_any_cast on failure. |
| 477 | template<typename ValueType> |
nothing calls this directly
no test coverage detected