Skip to content

[libc++] Consider using std::find_if in std::copy_if to figure out where to start copying from #129313

Open
@ldionne

Description

@ldionne

If std::find_if is fast, this can be beneficial.

We can also potentially find the end of the range to copy using another call to std::find_if. This is probably not worth it unless we have some knowledge of the predicate and iterator cost, but if we did that on random access iterators, we could call memcpy between the two found positions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions