Changeset 469 for trunk/nv/stl/utility/common.hh
- Timestamp:
- 09/17/15 17:17:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/utility/common.hh
r395 r469 34 34 35 35 template < typename T > 36 inline const T& max( const T& a, const T& b, const T& c ) 37 { 38 return a < b ? (c < b ? b : c) : a; 39 } 40 41 template < typename T > 36 42 inline const T& min( const T& a, const T& b ) 37 43 { 38 44 return a > b ? b : a; 39 45 } 46 47 template < typename T > 48 inline const T& min( const T& a, const T& b, const T& c ) 49 { 50 return a > b ? ( c > b ? b : c ) : a; 51 } 52 40 53 } 41 54
Note: See TracChangeset
for help on using the changeset viewer.