type_can_be_used_in_basic_result<R> - Boost.Outcome documentation

# `type_can_be_used_in_basic_result<R>`

A constexpr boolean true for types permissible in `basic_result<T, E, NoValuePolicy>`.

Overridable: Not overridable.

Definition: True for a type which:

- Is not a reference.
- Is not an `in_place_type_t<T>` .
- Is not a `success_type<T>` .
- Is not a `failure_type<EC, EP = void>` .
- Is not an array.
- Is either `void`, or else is an `Object` and is `Destructible`.

Namespace: `BOOST_OUTCOME_V2_NAMESPACE::trait`

Header: `<boost/outcome/trait.hpp>`

Last revised: January 24, 2019 at 01:15:16 UTC