Changes in src/Common/utility.h [87701b6:fbecee5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
r87701b6 rfbecee5 463 463 std::pair<long long int, bool> eval(Expression * expr); 464 464 465 namespace ast { 466 class Expr; 467 } 468 469 std::pair<long long int, bool> eval(const ast::Expr * expr); 470 471 // ----------------------------------------------------------------------------- 472 /// Reorders the input range in-place so that the minimal-value elements according to the 473 /// comparator are in front; 465 // ----------------------------------------------------------------------------- 466 /// Reorders the input range in-place so that the minimal-value elements according to the 467 /// comparator are in front; 474 468 /// returns the iterator after the last minimal-value element. 475 469 template<typename Iter, typename Compare> 476 470 Iter sort_mins( Iter begin, Iter end, Compare& lt ) { 477 471 if ( begin == end ) return end; 478 472 479 473 Iter min_pos = begin; 480 474 for ( Iter i = begin + 1; i != end; ++i ) {
Note: See TracChangeset
for help on using the changeset viewer.