Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 678 Bytes

noboolalpha.md

File metadata and controls

44 lines (35 loc) · 678 Bytes

noboolalpha

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

概要

bool値を数値として入出力することを指示するマニピュレータ。

効果

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

戻り値

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

#include <iostream>

int main()
{
  std::cout << std::boolalpha << false << std::endl;
  std::cout << std::noboolalpha << false << std::endl;
}
  • std::noboolalpha[color ff0000]

出力

false
0

バージョン

言語

  • C++03

参照