5 #ifndef BITCOIN_UTIL_ANY_H
6 #define BITCOIN_UTIL_ANY_H
17 template <
typename T> T *
AnyPtr(
const std::any &any) noexcept {
18 T *
const *ptr = std::any_cast<T *>(&any);
19 return ptr ? *ptr :
nullptr;
T * AnyPtr(const std::any &any) noexcept
Helper function to access the contained object of a std::any instance.