llvm-capstone/libcxx/include/__ranges
Hongyu Ouyang 37f9036320
[libc++] Make drop_view::begin constant time (#72883) (#72929)
As pointed out in #72883, the implementation only needs to return the
value of ranges::next and does not need to obtain the value through
ranges::advance, which causes it to have O(n) complexity in the case
of random-access-sized but non-common range.

Fixes #72883
2023-12-28 21:27:42 +00:00
..
access.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
all.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
as_rvalue_view.h Fixing conflicting macro definitions between curses.h and the standard library. 2023-07-06 17:21:08 +00:00
chunk_by_view.h [libc++] Make sure ranges algorithms and views handle boolean-testable correctly (#69378) 2023-11-06 21:19:49 -10:00
common_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
concepts.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
container_compatible_range.h [libc++][ranges] Implement the changes to vector from P1206 (ranges::to): 2023-05-08 23:40:55 -07:00
counted.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
dangling.h [libc++][NFC] Replace _LIBCPP_STD_VER > x with _LIBCPP_STD_VER >= x 2023-02-15 16:52:25 +01:00
data.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
drop_view.h [libc++] Make drop_view::begin constant time (#72883) (#72929) 2023-12-28 21:27:42 +00:00
drop_while_view.h [libc++][hardening][NFC] Introduce _LIBCPP_ASSERT_UNCATEGORIZED. 2023-06-28 15:10:31 -07:00
elements_view.h [libc++] Rename __tuple_dir back to __tuple 2023-04-12 14:30:39 +02:00
empty_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
empty.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
enable_borrowed_range.h [libc++][NFC] Replace _LIBCPP_STD_VER > x with _LIBCPP_STD_VER >= x 2023-02-15 16:52:25 +01:00
enable_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
filter_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
from_range.h [libc++][ranges] Implement the changes to vector from P1206 (ranges::to): 2023-05-08 23:40:55 -07:00
iota_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
istream_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
join_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
lazy_split_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
movable_box.h [libc++][ranges] Implement P2443R1: views::chunk_by 2023-09-05 16:19:49 -07:00
non_propagating_cache.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
owning_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
range_adaptor.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
rbegin.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
ref_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
rend.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
repeat_view.h [libc++][hardening] Mark the remaining stray assertions as uncategorized 2023-08-29 16:32:23 -07:00
reverse_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
single_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
size.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
split_view.h [libc++] views::split and views::lazy_split shouldn't be range adaptor closures (#75266) 2023-12-13 02:37:05 -08:00
subrange.h [libc++][hardening] Categorize more 'valid-element-access' checks. (#71620) 2023-12-20 17:24:48 -08:00
take_view.h [libc++] Fix the handling of views::take for iota_view (#75683) 2023-12-18 15:41:14 -05:00
take_while_view.h [libc++] Remove the CI job testing Clang 15 (#66406) 2023-09-25 17:55:59 -04:00
to.h [libc++] Check formatting with clang-format 17 (#68928) 2023-10-12 14:30:33 -07:00
transform_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
view_interface.h [libc++][hardening] Categorize more 'valid-element-access' checks. (#71620) 2023-12-20 17:24:48 -08:00
views.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00
zip_view.h [libc++] Format the code base (#74334) 2023-12-18 14:01:33 -05:00