• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <syncstream>

    std::basic_osyncstream::デストラクタ

    ~basic_osyncstream();
    

    概要

    デストラクタ。

    効果

    emit()を呼び出す。

    例外

    投げない。emit()から例外が投げられた場合、その例外は捕捉され無視される。

    #include <iostream>
    #include <syncstream>
    
    int main()
    {
      std::osyncstream bout{std::cout};
      bout << "Hello, World!";
    } // bout は emit() を呼び出し、破棄される
    

    出力

    Hello, World!
    

    バージョン

    言語

    • C++20

    処理系

    参照