Код: Выделить всё
template
constexpr _Er
error_or(_Gr&& __e) &&
{
static_assert( is_move_constructible_v );
static_assert( is_convertible_v );
if (_M_has_value)
return std::forward(__e);
//
Подробнее здесь: [url]https://stackoverflow.com/questions/79697298/why-is-else-omitted-after-return-in-some-libstdc-stdexpected-methods[/url]
Мобильная версия