Spec-Zone.ru › C++

std::execution::stopped_as_error

Defined in header <execution>
template< std::move_constructible Error >
execution::sender auto stopped_as_error( execution::sender auto snd, Error err );
(since C++26)

Parameters

snd - input sender of which the stopped channel is mapped into err
err - error to which the stop channel is mapped into

Return value

Returns a sender that maps the stopped channel to an error of err.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/execution/stopped_as_error

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API