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

Function LShiftOperator

Test/ConstExpr.cpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205 template <typename T, typename U>
206 _CONSTEXPR14 T LShiftOperator()
207 {
208 // Have to explicitly force this operator
209 // to be used
210 // T& operator <<=(T& lhs, SafeInt< U, E > rhs)
211
212 T lhs = 3;
213 SafeInt<U> s(2);
214
215 T& r = operator <<=(lhs, s);
216 return r;
217 }
218
219 template <typename T, typename U>
220 _CONSTEXPR14 U LShiftOperator2()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected