SubMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M1 , typename M2 >
class SubMap : public MapBase< M1::Key , M1::Value > Difference of two maps.
This read-only map returns the difference of the values of the two given maps. Its
KeyandValuetypes are inherited fromM1. TheKeyandValueofM2must be convertible to those ofM1.If
m1is of typeM1andm2is ofM2, then forSubMap< M1 , M2 > sm( m1 , m2 );
sm[x]will be equal tom1[x]-m2[x].The simplest way of using this map is through the subMap() function.