OrMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M1 , typename M2 >
class OrMap : public MapBase< M1::Key , bool > Logical ‘or’ of two maps.
This read-only map returns the logical ‘or’ of the values of the two given maps. Its
Keytype is inherited fromM1and itsValuetype isbool.M2::Keymust be convertible toM1::Key.If
m1is of typeM1andm2is ofM2, then forOrMap< M1 , M2 > om( m1 , m2 );
om[x]will be equal tom1[x]||m2[x].The simplest way of using this map is through the orMap() function.
See also
See also