Is there a built-in function for the natural length of a segment represented by an iterator?