| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libcxx][nfc] prefixes test type input_iterator with cpp17_ C++20 revised the definition of what it means to be an iterator. While all _Cpp17InputIterators_ satisfy std::input_iterator, the reverse isn't true. D100271 introduces a new test adaptor to accommodate this new definition (cpp20_input_iterator). In order to help readers immediately distinguish which input iterator adaptor is _Cpp17InputIterator_, the current input_iterator adaptor has been prefixed with cpp17_. Differential Revision: https://reviews.llvm.org/D101242 | 5 年前 | |
[libcxx][nfc] prefixes test type input_iterator with cpp17_ C++20 revised the definition of what it means to be an iterator. While all _Cpp17InputIterators_ satisfy std::input_iterator, the reverse isn't true. D100271 introduces a new test adaptor to accommodate this new definition (cpp20_input_iterator). In order to help readers immediately distinguish which input iterator adaptor is _Cpp17InputIterator_, the current input_iterator adaptor has been prefixed with cpp17_. Differential Revision: https://reviews.llvm.org/D101242 | 5 年前 | |
[libc++] Make sure ranges algorithms and views handle boolean-testable correctly (#69378) Before this patch, we would fail to implicitly convert the result of predicates to bool, which means we'd potentially perform a copy or move construction of the boolean-testable, which isn't allowed. The same holds true for comparing iterators against sentinels, which is allowed to return a boolean-testable type. We already had tests aiming to ensure correct handling of these types, but they failed to provide appropriate coverage in several cases due to guaranteed RVO. This patch fixes the tests, adds tests for missing algorithms and views, and fixes the actual problems in the code. Fixes #69074 | 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 年前 | ||
| 5 年前 | ||
| 2 年前 |