Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ranges #46

Closed
samchon opened this issue Nov 21, 2019 · 1 comment
Closed

ranges #46

samchon opened this issue Nov 21, 2019 · 1 comment
Assignees
Projects

Comments

@samchon
Copy link
Owner

@samchon samchon commented Nov 21, 2019

New module, ranges has been adapted since the C++20.

let items: number[] = [1, 5, -5, 7, 3, 16, 2, 9, 3, 4];

std.sort(std.begin(items), std.end(items));
std.ranges.sort(items); // convenient function
@samchon samchon self-assigned this Nov 21, 2019
samchon added a commit that referenced this issue Nov 21, 2019
samchon added a commit that referenced this issue Nov 23, 2019
samchon added a commit that referenced this issue Nov 24, 2019
samchon added a commit that referenced this issue Nov 25, 2019
samchon added a commit that referenced this issue Nov 30, 2019
samchon added a commit that referenced this issue Dec 10, 2019
samchon added a commit that referenced this issue Dec 10, 2019
@samchon samchon added this to In progress in v2.4 Update Dec 12, 2019
@samchon

This comment has been minimized.

Copy link
Owner Author

@samchon samchon commented Dec 12, 2019

Implementation Matrix

<algorithm>

module function std std.ranges
binary_search binary_search O O
binary_search equal_range O O
binary_search lower_bound O O
binary_search upper_bound O O
heap is_heap O O
heap is_heap_until O O
heap make_heap O O
heap pop_heap O O
heap push_heap O O
heap sort_heap O O
iterations adjacent_find O O
iterations all_of O O
iterations any_of O O
iterations count O O
iterations count_if O O
iterations equal O O
iterations find O O
iterations find_end O O
iterations find_first_of O O
iterations find_if O O
iterations find_if_not O O
iterations for_each O O
iterations for_each_n O O
iterations lexicographical_compare O O
iterations mismatch O O
iterations none_of O O
iterations search O O
iterations search_n O O
mathematics clamp O X
mathematics is_permutation O O
mathematics max O X
mathematics max_element O O
mathematics min O X
mathematics min_element O O
mathematics minmax O X
mathematics minmax_element O O
mathematics next_permutation O O
mathematics prev_permutation O O
merge includes O O
merge inplace_merge O O
merge merge O O
merge set_difference O O
merge set_intersection O O
merge set_symmetric_difference O O
merge set_union O O
modifiers copy O O
modifiers copy_backward O O
modifiers copy_if O O
modifiers copy_n O O
modifiers fill O O
modifiers fill_n O O
modifiers generate O O
modifiers generate_n O O
modifiers iter_swap O X
modifiers remove O O
modifiers remove_copy O O
modifiers remove_copy_if O O
modifiers remove_if O O
modifiers replace O O
modifiers replace_copy O O
modifiers replace_copy_if O O
modifiers replace_if O O
modifiers reverse O O
modifiers reverse_copy O O
modifiers rotate O O
modifiers rotate_copy O O
modifiers shift_left O O
modifiers shift_right O O
modifiers shuffle O O
modifiers swap_ranges O O
modifiers transform O O
modifiers unique O O
modifiers unique_copy O O
partition is_partitioned O O
partition partition O O
partition partition_copy O O
partition partition_point O O
partition stable_partition O O
random randint O X
random sample O O
sorting is_sorted O O
sorting is_sorted_until O O
sorting nth_element O O
sorting partial_sort O O
sorting partial_sort_copy O O
sorting sort O O
sorting stable_sort O O
@samchon samchon changed the title <algorithm> std.ranges ranges Dec 23, 2019
samchon added a commit that referenced this issue Dec 23, 2019
samchon added a commit that referenced this issue Dec 24, 2019
samchon added a commit that referenced this issue Dec 26, 2019
samchon added a commit that referenced this issue Dec 28, 2019
@samchon samchon closed this Jan 10, 2020
v2.4 Update automation moved this from In progress to Done Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2.4 Update
  
Done
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.