MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / get

Method get

tests/ClassOpInTemplateFunctionTest.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21 template<int N>
22 constexpr decltype(auto) get() const noexcept {
23 if constexpr(N == 1) { return mX; }
24 else if constexpr(N == 0) { return 2; }
25 }
26
27
28 int mX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected