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

Function SubOperator

Test/ConstExpr.cpp:194–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193 template <typename T, typename U>
194 _CONSTEXPR14 T SubOperator()
195 {
196 // Have to explicitly force this operator
197 // to be used
198 T lhs = 3;
199 SafeInt<U> s(2);
200
201 T& r = operator -=(lhs, s);
202 return r;
203 }
204
205 template <typename T, typename U>
206 _CONSTEXPR14 T LShiftOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected