MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / AndOperator

Function AndOperator

Test/ConstExpr.cpp:257–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256 template <typename T, typename U>
257 _CONSTEXPR14 T AndOperator()
258 {
259 // Have to explicitly force this operator
260 // to be used
261
262 T lhs = 3;
263 SafeInt<U> s(1);
264
265 T& r = operator &=(lhs, s);
266 return r;
267 }
268
269 template <typename T, typename U>
270 _CONSTEXPR14 U AndOperator2()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected