COIN-OR::LEMON - Graph Library

Changeset 1904:a64e4735bda6 in lemon-0.x


Ignore:
Timestamp:
01/25/06 15:58:04 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2479
Message:

Bug fix for empty intervall sorting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/radix_sort.h

    r1875 r1904  
    318318  template <typename Value, typename Iterator, typename Functor>
    319319  void counterSignedSort(Iterator first, Iterator last, Functor functor) {
     320    if (first == last) return;
    320321    typedef typename std::iterator_traits<Iterator>::value_type Key;
    321322    typedef std::allocator<Key> Allocator;
     
    356357  template <typename Value, typename Iterator, typename Functor>
    357358  void counterUnsignedSort(Iterator first, Iterator last, Functor functor) {
     359    if (first == last) return;
    358360    typedef typename std::iterator_traits<Iterator>::value_type Key;
    359361    typedef std::allocator<Key> Allocator;
Note: See TracChangeset for help on using the changeset viewer.