iterate over key_type of map
Dear all,
in our company we use the STL map frequently. However one often wants to
iterate over the key_type only (or mapped type, or make desicions for the key
type, and take action on its corresponded map type).
With the transform_iterator this is possible, but the resulting code is not an
improvement over writing the loop explicitly. For example I want to search for
the maximum string length:
typedef std::map
participants (2)
-
Alan M. Carroll
-
gast128