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

Function Max

SafeInt.hpp:6359–6363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6357 }
6358
6359 SafeInt< T, E > Max( SafeInt< T, E > test, const T upper = std::numeric_limits<T>::max() ) const SAFEINT_NOTHROW
6360 {
6361 T tmp = test > m_int ? (T)test : m_int;
6362 return tmp > upper ? upper : tmp;
6363 }
6364
6365 void Swap( SafeInt< T, E >& with ) SAFEINT_NOTHROW
6366 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected