Changeset a9f2c13 for src/libcfa/stdlib


Ignore:
Timestamp:
Jun 30, 2016, 4:17:59 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
e20f53c
Parents:
1bc1bb2
Message:

add polymorphic clamp routine to stdlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r1bc1bb2 ra9f2c13  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr 27 22:03:29 2016
    13 // Update Count     : 96
     12// Last Modified On : Thu Jun 30 15:04:18 2016
     13// Update Count     : 97
    1414//
    1515
     
    129129T max( const T t1, const T t2 );
    130130
     131forall( otype T | { T min( T, T ); T max( T, T ); } )
     132T clamp( const T value, const T min_val, const T max_val );
     133
    131134forall( otype T )
    132135void swap( T * t1, T * t2 );
Note: See TracChangeset for help on using the changeset viewer.