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

Function identity

example/tutorial/constant_side_effects.cpp:14–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12//! [pure]
13template <typename X>
14auto identity(X x) { return x; }
15
16auto x = identity(hana::bool_c<true>);
17static_assert(hana::value(x), "");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected