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

Function main

example/motivating_example0.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18int main() {
19 some_person val{"Edgar Allan Poe", 1809};
20
21 std::cout << boost::pfr::get<0>(val) // No macro!
22 << " was born in " << boost::pfr::get<1>(val); // Works with any aggregate initializables!
23
24 std::cout << boost::pfr::io(val); // Outputs: {"Edgar Allan Poe", 1809}
25}
26//]

Callers

nothing calls this directly

Calls 1

ioFunction · 0.85

Tested by

no test coverage detected