NegWriteMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M >
class NegWriteMap : public MapBase< M::Key , M::Value > Negative of a map (read-write version).
This read-write map returns the negative of the values of the given map (using the unary
-operator). ItsKeyandValueare inherited fromM. It makes also possible to write the map.If M::Value is
int,doubleetc., thenis equivalent toNegWriteMap< M > neg( m );
ScaleWriteMap< M > neg( m , -1 );
The simplest way of using this map is through the negWriteMap() function.
See also