Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 896 Bytes

nouppercase.md

File metadata and controls

48 lines (39 loc) · 896 Bytes

nouppercase

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

概要

出力時に英小文字を使用することを指示するマニピュレータ。 hexscientifichexfloatなどと組み合わせることで効果がある。

効果

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

戻り値

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

#include <iostream>

int main()
{
  std::cout << std::hex;
  std::cout << std::uppercase << 0xbeef << std::endl;
  std::cout << std::nouppercase << 0xbeef << std::endl;
}
  • std::nouppercase[color ff0000]
  • std::hex[link hex.md]
  • std::uppercase[link uppercase.md]

出力

BEEF
beef

バージョン

言語

  • C++03

参照