hex

hex

ios_base& hex(ios_base& str);

The manipulator effectively calls str.setf(ios_base:: hex, ios_base:: basefield), then returns str.