Miscellaneous helper functions
| 6351 | |
| 6352 | // Miscellaneous helper functions |
| 6353 | SafeInt< T, E > Min( SafeInt< T, E > test, const T floor = std::numeric_limits<T>::min() ) const SAFEINT_NOTHROW |
| 6354 | { |
| 6355 | T tmp = test < m_int ? (T)test : m_int; |
| 6356 | return tmp < floor ? floor : tmp; |
| 6357 | } |
| 6358 | |
| 6359 | SafeInt< T, E > Max( SafeInt< T, E > test, const T upper = std::numeric_limits<T>::max() ) const SAFEINT_NOTHROW |
| 6360 | { |
nothing calls this directly
no outgoing calls
no test coverage detected