LessMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M1 , typename M2 >
class LessMap : public MapBase< M1::Key , bool > Combination of two maps using the
<operator.This read-only map assigns
trueto the keys for which the corresponding value of the first map is less then the value of the second map. ItsKeytype is inherited fromM1and itsValuetype isbool.M2::Keymust be convertible toM1::Key.If
m1is of typeM1andm2is ofM2, then forLessMap< M1 , M2 > lm( m1 , m2 );
lm[x]will be equal tom1[x]<m2[x].The simplest way of using this map is through the lessMap() function.
See also