Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 519 Bytes

op_bool.md

File metadata and controls

19 lines (15 loc) · 519 Bytes

operator bool

  • ostream[meta header]
  • std[meta namespace]
  • basic_ostream::sentry[meta class]
  • function[meta id-type]
operator bool() const;              // C++03 まで
explicit operator bool() const;     // C++11 から

概要

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

戻り値

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

参照