C++26 introduced a new function template, exception_ptr_cast, to check whether an exception_ptr stores a given known type, which is typically faster than throwing and catching. The relevant code is in base_coroutine_foundation.h.
Currently, this function template has not been implemented yet. Once a implements supports it, this improvement can be implemented. The value of the feature test macro __cpp_lib_exception_ptr_cast is 202506L.
C++26 introduced a new function template, exception_ptr_cast, to check whether an exception_ptr stores a given known type, which is typically faster than throwing and catching. The relevant code is in base_coroutine_foundation.h.
Currently, this function template has not been implemented yet. Once a implements supports it, this improvement can be implemented. The value of the feature test macro __cpp_lib_exception_ptr_cast is 202506L.