COIN-OR::LEMON - Graph Library

Changeset 2496:72c3c25d5b8f in lemon-0.x


Ignore:
Timestamp:
10/17/07 14:46:14 (12 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3335
Message:

setAll for iterable bool maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/iterable_maps.h

    r2391 r2496  
    175175        Parent::set(tmp, pos);
    176176      }
     177    }
     178
     179    /// \brief Set all items.
     180    ///
     181    /// Set all items in the map.
     182    /// \note Constant time operation.
     183    void setAll(bool value) {
     184      sep = (value ? array.size() : 0);     
    177185    }
    178186
Note: See TracChangeset for help on using the changeset viewer.