mrdocs::swap

Swap contents with another Expected.

Synopsis

Declared in <mrdocs/Support/Expected.hpp>

constexpr
void
swap(
    Expected& x,
    Expected& y) noexcept(noexcept(x.swap(y)))
requires requires { x.swap(y); };

Parameters

Name Description

x

A container holding an error or a value.

y

A container holding an error or a value.

Created with MrDocs