MCPcopy Create free account
hub / github.com/cppfastio/fast_io / main

Function main

examples/0003.manipulators/width_runtime.cc:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace fast_io::io;
4
5int 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/*
16D:\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
19D:\hg\fast_io\examples\0003.manipulators>width_runtime
20hello

Callers

nothing calls this directly

Calls 2

widthFunction · 0.85
dfvwFunction · 0.85

Tested by

no test coverage detected