Ignore:
Timestamp:
09/17/15 17:17:20 (10 years ago)
Author:
epyon
Message:
  • stl/short_string - minor fix
  • stl/utility - max for 3 arguments
  • stl/math length_sq
  • interface/context - proper handling of buffer ownage in va's
  • wx/canvas - sleep added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/utility/common.hh

    r395 r469  
    3434
    3535        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 >
    3642        inline const T& min( const T& a, const T& b )
    3743        {
    3844                return a > b ? b : a;
    3945        }
     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
    4053}
    4154
Note: See TracChangeset for help on using the changeset viewer.