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

Function main

example/functional/compose.cpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11int main() {
12 BOOST_HANA_CONSTEXPR_LAMBDA auto to_char = [](int x) {
13 return static_cast<char>(x + 48);
14 };
15
16 BOOST_HANA_CONSTEXPR_LAMBDA auto increment = [](auto x) {
17 return x + 1;
18 };
19
20 BOOST_HANA_CONSTEXPR_CHECK(hana::compose(to_char, increment)(3) == '4');
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected