[all-commits] [llvm/llvm-project] d1e507: [libc++] Define insert_iterator::iter with ranges:...
Quuxplusone via All-commits
all-commits at lists.llvm.org
Thu Sep 2 13:17:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d1e50738d78a9c1493667526653bb0da55091c98
https://github.com/llvm/llvm-project/commit/d1e50738d78a9c1493667526653bb0da55091c98
Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
Date: 2021-09-02 (Thu, 02 Sep 2021)
Changed paths:
M libcxx/include/__iterator/insert_iterator.h
A libcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iterator/cxx20_iter_member.pass.cpp
Log Message:
-----------
[libc++] Define insert_iterator::iter with ranges::iterator_t.
The `insert_iterator::iter` member is defined as `Container::iterator` but
the standard requires `iter` to be defined in terms of `ranges::iterator_t` as
of C++20. So, if in C++20 or later, define the `iter` member as
`ranges::iterator_t`.
Original patch by Joe Loser!
Differential Revision: https://reviews.llvm.org/D108575
More information about the All-commits
mailing list