1+++ 2title = "`BOOST_OUTCOME_THROW_EXCEPTION(expr)`" 3description = "How to throw a C++ exception, or equivalent thereof." 4+++ 5 6Throws a C++ exception, or equivalent thereof. 7 8*Overridable*: Define before inclusion. 9 10*Default*:<dl> 11<dt>Standalone Outcome (C++ exceptions enabled): 12<dd>To `throw expr` 13<dt>Standalone Outcome (C++ exceptions disabled): 14<dd>To `BOOST_OUTCOME_V2_NAMESPACE::detail::do_fatal_exit(#expr)` which is a function which prints a useful error message including a stack backtrace (where available) to `stderr` before calling `abort()`. 15<dt>Boost.Outcome: 16<dd>To `BOOST_THROW_EXCEPTION(expr)`. 17</dl> 18 19*Header*: `<boost/outcome/config.hpp>`