Skip to content

add shrink_to_fit method to vectors #4960

Closed
@thestinger

Description

@thestinger

This is useful for minimizing memory usage of a long-lived container after deletions, and was added to std::vector in C++11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions