Talk:cpp/iterator/size
From cppreference.com
< Talk:cpp
Aren't these two templates already in C++14? 165.225.86.65 02:59, 10 February 2017 (PST)
- no, they are not in C++14. The proposal first appeared in 2014, which was already too late for new C++14 features. It was merged (as n4280) at Urbana with the first batch of C++17 features (specifically, it was LWG motion 20). The C++17 draft, n4296, that came out of Urbana has it. --Cubbi (talk) 06:14, 10 February 2017 (PST)
- I think isocpp.org is still advertising N4296 as a "C++14 draft" or something along those lines. That might be what's causing the confusion. T. Canens (talk) 08:20, 10 February 2017 (PST)
- Huh, indeed. This working draft contains the C++14 standard plus minor editorial changes. is wrong. I sent them a note. --Cubbi (talk) 08:35, 10 February 2017 (PST)
- Thanks for your replies. Considering n4296 as a C++14 draft was indeed what was causing my confusion. 165.225.86.65 06:12, 14 February 2017 (PST)
- Huh, indeed. This working draft contains the C++14 standard plus minor editorial changes. is wrong. I sent them a note. --Cubbi (talk) 08:35, 10 February 2017 (PST)
- I think isocpp.org is still advertising N4296 as a "C++14 draft" or something along those lines. That might be what's causing the confusion. T. Canens (talk) 08:20, 10 February 2017 (PST)
[edit] Non-containers and classes with private size() method
Are these templates required to work for any class that has a size() member function? Or only for containers? What if the size() method is private? Can a specialization of them be befriended?
[edit] Headers not filtered by language version
appears in the list, but it isn't available until C++20. <string_view> appears in C++14. Filtering by language standard should adjust the list of headers.
RobStewart (talk) 10:04, 30 January 2025 (PST)