Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / outcome / doc / src / content / reference / types / basic_outcome / implicit_failure_error_make_error_code_move_constructor.md
1 +++
2 title = "`basic_outcome(failure_type<EC> &&)`"
3 description = "Implicit error-from-failure-type-sugar move constructor. Available if `predicate::enable_make_error_code_compatible_conversion<void, EC, void, void>` is true. Constexpr, triviality and noexcept propagating."
4 categories = ["constructors", "implicit-constructors", "tagged-constructors"]
5 weight = 532
6 +++
7
8 Implicit error-from-failure-type-sugar move constructor used to disambiguate the construction of the error type.
9 Calls {{% api "void hook_outcome_move_construction(T *, U &&) noexcept" %}} with `this` and `failure_type<EC> &&`.
10
11 *Requires*: `predicate::enable_make_error_code_compatible_conversion<void, EC, void, void>` is true.
12
13 *Complexity*: Same as for the `error_type` constructor which accepts `EC`. Constexpr, triviality and noexcept of underlying operations is propagated.