Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 971 Bytes

nounitbuf.md

File metadata and controls

50 lines (40 loc) · 971 Bytes

nounitbuf

  • ios[meta header]
  • std[meta namespace]
  • function[meta id-type]
namespace std {
  ios_base& nounitbuf(ios_base& str);
}

概要

unitbufの効果を取り消すことを指示するマニピュレータ。 これにより、出力操作のたびにバッファをフラッシュされる操作が行われなくなる。

効果

str.unsetf(std::ios_base::unitbuf)を実行する。

戻り値

実引数のstrオブジェクト。

備考

std::cerrstd::wcerrオブジェクトは、 初期状態としてstd::ios_base::unitbufが設定されている。

#include <iostream>

int main()
{
  std::cout << std::unitbuf << "test\n";
  std::cout << std::nounitbuf << "test\n";
}
  • std::nounitbuf[color ff0000]
  • std::unitbuf[link unitbuf.md]

出力

test
test

バージョン

言語

  • C++03

参照