Skip to content

[libc++] ranges::ends_with should forward to equal #83880

Open
@philnik777

Description

@philnik777

equal forwards to memcmp for trivially equality comparable types, which is an order of magnitude faster than the generic loop. We should make use of that optimization in ends_with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.performancerangesIssues related to `<ranges>`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions