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

Function LShiftOperator2

Test/ConstExpr.cpp:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219 template <typename T, typename U>
220 _CONSTEXPR14 U LShiftOperator2()
221 {
222 // Have to explicitly force this operator
223 // to be used
224 U lhs = 3;
225 SafeInt<T> s(2);
226
227 SafeInt<U> r = operator <<(lhs, s);
228 return r;
229 }
230
231 template <typename T, typename U>
232 _CONSTEXPR14 T RShiftOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected