Template Function lvr2::minMaxOfMap

Function Documentation

template<typename HandleT, typename ValueT>
pair<ValueT, ValueT> lvr2::minMaxOfMap(const AttributeMap<HandleT, ValueT> &map)

Returns the minimum and maximum element from the given map.

Of course, this assumes that the values in the map are comparable with the standard comparison operators.