gcc/libstdc++-v3/include/std
Patrick Palka c7fe68f365 libstdc++: Fix elements_view::operator* and operator[] [LWG 3502]
While we're modifying elements_view, this also implements the one-line
resolution of LWG 3492.

libstdc++-v3/ChangeLog:

	* include/std/ranges (__detail::__returnable_element): New
	concept.
	(elements_view): Use this concept in its constraints.  Add
	missing private access specifier.
	(elements_view::_S_get_element): Define as per LWG 3502.
	(elements_view::operator*, elements_view::operator[]): Use
	_S_get_element.
	(elements_view::operator++): Remove unnecessary constraint
	as per LWG 3492.
	* testsuite/std/ranges/adaptors/elements.cc (test05): New test.
2021-04-08 16:45:22 -04:00
..
algorithm Update copyright years. 2021-01-04 10:26:59 +01:00
any libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
array Update copyright years. 2021-01-04 10:26:59 +01:00
atomic libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
barrier libstdc++: Make barrier::arrival_token a move-only class type 2021-03-11 17:52:57 +00:00
bit libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
bitset libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
charconv Update copyright years. 2021-01-04 10:26:59 +01:00
chrono libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
codecvt Update copyright years. 2021-01-04 10:26:59 +01:00
complex libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
concepts Update copyright years. 2021-01-04 10:26:59 +01:00
condition_variable libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
coroutine libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021] 2021-02-09 12:31:52 +00:00
deque Update copyright years. 2021-01-04 10:26:59 +01:00
execution Update copyright years. 2021-01-04 10:26:59 +01:00
filesystem Update copyright years. 2021-01-04 10:26:59 +01:00
forward_list Update copyright years. 2021-01-04 10:26:59 +01:00
fstream libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
functional Update copyright years. 2021-01-04 10:26:59 +01:00
future libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
iomanip Update copyright years. 2021-01-04 10:26:59 +01:00
ios Update copyright years. 2021-01-04 10:26:59 +01:00
iosfwd Update copyright years. 2021-01-04 10:26:59 +01:00
iostream libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
istream libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
iterator Update copyright years. 2021-01-04 10:26:59 +01:00
latch Update copyright years. 2021-01-04 10:26:59 +01:00
limits Update copyright years. 2021-01-04 10:26:59 +01:00
list Update copyright years. 2021-01-04 10:26:59 +01:00
locale Update copyright years. 2021-01-04 10:26:59 +01:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
memory Update copyright years. 2021-01-04 10:26:59 +01:00
memory_resource Update copyright years. 2021-01-04 10:26:59 +01:00
mutex libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
numbers Update copyright years. 2021-01-04 10:26:59 +01:00
numeric libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
optional Update copyright years. 2021-01-04 10:26:59 +01:00
ostream libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
queue Update copyright years. 2021-01-04 10:26:59 +01:00
random Update copyright years. 2021-01-04 10:26:59 +01:00
ranges libstdc++: Fix elements_view::operator* and operator[] [LWG 3502] 2021-04-08 16:45:22 -04:00
ratio libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex Update copyright years. 2021-01-04 10:26:59 +01:00
scoped_allocator Update copyright years. 2021-01-04 10:26:59 +01:00
semaphore Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
shared_mutex libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
source_location Update copyright years. 2021-01-04 10:26:59 +01:00
span Update copyright years. 2021-01-04 10:26:59 +01:00
sstream Update copyright years. 2021-01-04 10:26:59 +01:00
stack Update copyright years. 2021-01-04 10:26:59 +01:00
stdexcept libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stop_token libstdc++: Use acq_rel memory ordering [PR 99537] 2021-03-11 17:52:56 +00:00
streambuf libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
string Update copyright years. 2021-01-04 10:26:59 +01:00
string_view libstdc++: Fix Doxygen warning about ambiguous file name 2021-04-08 14:51:03 +01:00
syncstream Update copyright years. 2021-01-04 10:26:59 +01:00
system_error libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
thread libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
tuple Update copyright years. 2021-01-04 10:26:59 +01:00
type_traits libstdc++: Make std::is_scoped_enum work with incomplete types 2021-04-08 11:56:59 +01:00
typeindex Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_set Update copyright years. 2021-01-04 10:26:59 +01:00
utility libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
valarray libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
variant libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
vector Update copyright years. 2021-01-04 10:26:59 +01:00
version libstdc++: Add std::is_scoped_enum for C++23 2021-03-19 20:10:56 +00:00