| 776 | |
| 777 | template <typename T> |
| 778 | inline const T* dynamic_cast_() const |
| 779 | { |
| 780 | const auto* h = dynamic_cast<const concrete_holder_<T>*>(holder()); |
| 781 | if (h == nullptr) { |
| 782 | return nullptr; |
| 783 | } |
| 784 | return &h->impl_; |
| 785 | } |
| 786 | |
| 787 | template <typename T> |
| 788 | inline const T* static_cast_() const |