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

Function main

example/cppcon_2014/functor.cpp:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15int main() {
16 // transform
17 {
18 BOOST_HANA_CONSTEXPR_LAMBDA auto m = matrix(
19 row(1, hana::int_c<2>, 3),
20 row(hana::int_c<4>, 5, 6),
21 row(7, 8, hana::int_c<9>)
22 );
23
24 BOOST_HANA_CONSTEXPR_CHECK(hana::equal(
25 hana::transform(m, hana::_ + hana::int_c<1>),
26 matrix(
27 row(2, hana::int_c<3>, 4),
28 row(hana::int_c<5>, 6, 7),
29 row(8, 9, hana::int_c<10>)
30 )
31 ));
32 }
33}

Callers

nothing calls this directly

Calls 2

transformClass · 0.85
equalClass · 0.50

Tested by

no test coverage detected