Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
13
template <typename X>
14
auto identity(X x) { return x; }
15
16
auto x = identity(hana::bool_c<true>);
17
static_assert(hana::value(x),
""
);
Callers
1
constant_side_effects.cpp
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected