When `itr` is empty, there's no way to compute extremes (not even able to get `v` from the first element). In such cases, we have no other choices than raising an error.