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

Function next

example/optional/applicative.cpp:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12constexpr char next(char c) { return c + 1; }
13
14static_assert(hana::ap(hana::just(next), hana::just('x')) == hana::just('y'), "");
15BOOST_HANA_CONSTANT_CHECK(hana::ap(hana::nothing, hana::just('x')) == hana::nothing);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected