| 3 | using namespace fast_io::io; |
| 4 | |
| 5 | int main() |
| 6 | { |
| 7 | using namespace fast_io::mnp; |
| 8 | scalar_placement place1 = scalar_placement::left; |
| 9 | scalar_placement place2 = scalar_placement::middle; |
| 10 | scalar_placement place3 = scalar_placement::right; |
| 11 | scalar_placement place4 = scalar_placement::internal; |
| 12 | println(width(place1, "hello", 20), "\n", width(place2, "hello", 20), "\n", width(place3, "hello", 20, '0'), "\n", |
| 13 | width(place4, "hello", 20), "\n", width(place4, dfvw(4), 20)); |
| 14 | } |
| 15 | /* |
| 16 | D:\hg\fast_io\examples\0003.manipulators>g++ -o width_runtime width_runtime.cc -Ofast -std=c++23 -s -flto -march=native |
| 17 | -I../../include |
| 18 | |
| 19 | D:\hg\fast_io\examples\0003.manipulators>width_runtime |
| 20 | hello |