I'm -1 for this.  We have continued_fraction_iterator for this.