Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / outcome / doc / src / content / reference / types / basic_result / explicit_make_error_code_move_converting_constructor.md
1 +++
2 title = "`explicit basic_result(basic_result<R, S, P> &&)`"
3 description = "Explicit converting move constructor from compatible `basic_result`. Available if `predicate::enable_make_error_code_compatible_conversion<R, S, P>` is true. Constexpr, triviality and noexcept propagating."
4 categories = ["constructors", "explicit-constructors", "converting-constructors"]
5 weight = 322
6 +++
7
8 Explicit converting move constructor from compatible `basic_result`. Calls {{% api "void hook_result_move_construction(T *, U &&) noexcept" %}} with `this` and the input.
9
10 *Requires*: `predicate::enable_make_error_code_compatible_conversion<R, S, P>` is true.
11
12 *Complexity*: Same as for the move constructors of the underlying types. Constexpr, triviality and noexcept of underlying operations is propagated.
13
14 *Guarantees*: If an exception is thrown during the operation, the object is left in a partially completed state, as per the normal rules for the same operation on a `struct`.