Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 552 Bytes

op_bool.md

File metadata and controls

25 lines (18 loc) · 552 Bytes

operator bool

  • ostream[meta header]
  • std[meta namespace]
  • basic_ostream::sentry[meta class]
  • function[meta id-type]
operator bool() const;          // (1) C++98
explicit operator bool() const; // (1) C++11

概要

出力処理の前処理が正常に完了したか否かを返す。

戻り値

本オブジェクトの構築時に出力処理の前処理が正常に完了していれば true、そうでなければ false。

バージョン

言語

  • C++98

関連項目