10 #ifndef SRC_INCLUDE_IOMANIPULATORS_H_ 11 #define SRC_INCLUDE_IOMANIPULATORS_H_ 29 template <
int w = 9,
int p = w - 3,
typename CharT,
typename Traits>
30 inline std::basic_ostream<CharT, Traits> &
field(
31 std::basic_ostream<CharT, Traits> &s) {
33 s.setf(std::ios_base::fixed, std::ios_base::floatfield);
41 #endif // SRC_INCLUDE_IOMANIPULATORS_H_ std::basic_ostream< CharT, Traits > & field(std::basic_ostream< CharT, Traits > &s)
Stream modifier to align the next object to a specific width w.