Skip to content

add reserve function for array to reserve memory before adding json values into it #436

Closed
@fnc12

Description

@fnc12

std::vector has a very useful reserve function that is used to preallocate memory for future push_backs. It reduces push_back time in case if a number of items is high. So it would be useful to add this function to basic_json for array reserve

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions