MCPcopy Create free account
hub / github.com/boostorg/filesystem / main

Function main

example/tchar.cpp:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24int main()
25{
26 // get a path that is known to exist
27 fs::path cp = fs::current_path();
28
29 // demo: get tstring from the path
30 tstring cp_as_tstring = cp.string< tstring >();
31
32 // demo: pass tstring to filesystem function taking path
33 assert(fs::exists(cp_as_tstring));
34
35 // demo: pass tstring to user function taking path
36 func(cp_as_tstring);
37
38 return 0;
39}

Callers

nothing calls this directly

Calls 3

funcFunction · 0.85
current_pathFunction · 0.50
existsFunction · 0.50

Tested by

no test coverage detected