result Output iterator to the initial position of the range where the resulting sequence is stored. The pointed type shall support being assigned the value of an element from the first range. |
Hello, *****, I've been reading the page you link, and although it contains a rather terse description that could definitely be improved, I can't seen to find the error or typo. As I see it, what you pass as fifth argument is the beginning of the range, and what gets returned by the function is its end. The iterator passed as argument is never actually modified by the function (but a copy). Please, let me know if I missed something. In any case, thanks for reporting this issue. All feedback is appreciated. Best regards, |
Juan, From your email: "As I see it, what you pass as fifth argument is the beginning of the range, and what gets returned by the function is its end. The iterator passed as argument is never actually modified by the function (but a copy)." I agree, this is the behavior of the function/API. However, the text on that page says that the return value is the *initial* position of the returned range and should say it is the *final* or *one past the end* of the range. I apologize that I did not make myself clear. The typo is in the text description of the return value not the coded example, or equivalent code. Yours, |