2 title = "`is_exception_ptr_available<T>`"
3 description = "True if an exception ptr can be constructed from a `T`."
6 `::value` is true if an exception ptr can be constructed from a `T` e.g. if there exists an ADL discovered free function `make_exception_ptr(T)`.
7 `::type` is the type that would result if `::value` is true, else `void`.
9 *Overridable*: By template specialisation into the `trait` namespace.
11 *Default*: True if `T` is an exception ptr, else to metaprogramming which performs the ADL discovery of `make_exception_ptr(T)`. Note that the STL defines an ADL discovered free function {{% api "std::make_exception_ptr(T)" %}}. Thus this trait will pick up that free function.
13 *Namespace*: `BOOST_OUTCOME_V2_NAMESPACE::trait`
15 *Header*: `<boost/outcome/trait.hpp>`
17 *Variable alias*: `is_exception_ptr_available_v<T>`