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

Function main

example/functional/capture.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11int main() {
12 BOOST_HANA_CONSTEXPR_LAMBDA auto sum = [](auto x, auto y, auto z) {
13 return x + y + z;
14 };
15
16 BOOST_HANA_CONSTEXPR_CHECK(hana::capture(1, 2, 3)(sum)() == 6);
17 BOOST_HANA_CONSTEXPR_CHECK(hana::capture(1, 2)(sum)(3) == 6);
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected