Skip to content

[libc++] Algorithms like copy and copy_n can use batch insertion for insert iterators into containers #163134

@kelbon

Description

@kelbon

As far as I can see, its not currently handled if output iterator is a back_inserter. But it is potentially much better to do

out._container.insert(_container.end(), b, e) // uninitialized_copy_n or smth inside

instead of many .push_backs

In msvc stl its also not handled, but vector of bool is special case

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