GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::basic_osyncstream::デストラクタ - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. syncstream
  3. basic_osyncstream
  4. デストラクタ

最終更新日時: 2024年06月11日 22時45分38秒 (JST)
Akira Takahashi が更新

履歴 編集

function
<syncstream>

std::basic_osyncstream::デストラクタ(C++20)

~basic_osyncstream();

概要

デストラクタ。

効果

emit()を呼び出す。

例外

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

例

#include <iostream>
#include <syncstream>

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

出力

Hello, World!

バージョン

言語

  • C++20

処理系

  • Clang: ??
  • GCC: 11.1 ✅
  • Visual C++: 2019 update 10 ✅

参照

  • P0053R7 C++ Synchronized Buffered Ostream
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.