ComposeMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M1 , typename M2 >
class ComposeMap : public MapBase< M2::Key , M1::Value > Composition of two maps.
This read-only map returns the composition of two given maps. That is to say, if
m1is of typeM1andm2is ofM2, then forComposeMap< M1 , M2 > cm( m1 , m2 );
cm[x]will be equal tom1[m2[x]].The
Keytype of the map is inherited fromM2and theValuetype is fromM1.M2::Valuemust be convertible toM1::Key.The simplest way of using this map is through the composeMap() function.
See also
CombineMap