Skip to content

Add vec::shrink_to_fit #6900

Closed
Closed
@emberian

Description

@emberian

Similar to http://en.cppreference.com/w/cpp/container/vector/shrink_to_fit. I'm not enamored with the name, but there needs to be a way to realloc a vec (without necessarily copying) when you overallocate (using with_capacity).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions