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