名稱空間
變體
操作

std::execution::into_variant

來自 cppreference.com
< cpp‎ | execution
 
 
 
定義於標頭檔案 <execution>
execution::sender auto into_variant( execution::sender auto snd );
(C++26 起)

[edit] 引數

snd - 輸入傳送器,根據執行時條件可以傳送多組值。

[edit] 返回值

返回一個傳送器,它傳送一個變體,其中包含輸入傳送器傳送的所有可能型別集的元組。該輔助函式將它們轉換為單個變體值。