- ios[meta header]
- std[meta namespace]
- function[meta id-type]
namespace std {
ios_base& uppercase(ios_base& str);
}
出力時に英大文字を使用することを指示するマニピュレータ。
hex
やscientific
、hexfloat
などと組み合わせることで効果がある。
str.setf(std::ios_base::uppercase)
を実行する。
実引数のstrオブジェクト。
#include <iostream>
int main()
{
std::cout << std::uppercase;
std::cout << std::hex << std::showbase << 0xbeef << std::endl;
std::cout << std::scientific << 1e+23 << std::endl;
std::cout << std::hexfloat << 1234.5 << std::endl;
}
- std::uppercase[color ff0000]
- std::hex[link hex.md]
- std::showbase[link showbase.md]
- std::scientific[link scientific.md]
- std::hexfloat[link hexfloat.md]
0XBEEF
1.000000E+023
0X1.34A000P+10
- C++03