default_policy<T, EC, EP>
A type alias to a no-value policy selected based on traits matching of T, EC and EP. It is defined as follows:
If
ECandEPisvoid, chooseterminate.If
is_error_code_available<T>true forEC, chooseerror_code_throw_as_system_error<T, EC, EP>forbasic_outcomeorerror_code_throw_as_system_error<T, EC, void>forbasic_result.If
is_exception_ptr_available<T>true forECorEP, chooseexception_ptr_rethrow<T, EC, EP>forbasic_outcomeorexception_ptr_rethrow<T, EC, void>forbasic_result.Else choose
fail_to_compile_observers, which fails the build with a useful message.
Namespace: BOOST_OUTCOME_V2_NAMESPACE::policy
Header: <boost/outcome/std_result.hpp>



