Namespaces
Variants
Actions

Talk:cpp/ranges/begin

From cppreference.com

It's not clear to me from this page that std::ranges::begin considers std::begin (presumably via using std::begin;, noting that std::ranges::begin does work on e.g. std::valarray. I think this is worth clarifying, but I can't even tell what part of the spec indicates this behaviour. Can anyone provide some insight? --Ybab321 (talk) 03:30, 2 June 2021 (PDT)

Never mind, it's due to the unqualified call to begin, which is being done from within the std namespace, and the deletion of those unconstrained begin templates doesn't prevent the constrained templates for begin overloads being called. --Ybab321 (talk) 03:35, 2 June 2021 (PDT)

[edit] Differences with std::begin

It would be good to have some succinct words about the differences with std::begin. I have found the post https://stackoverflow.com/questions/62183286/what-is-the-difference-between-stdrangesbegin-and-stdbegin revealing on the subject.

--68.65.161.172 20:19, 2 September 2023 (PDT) Hamlet