Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default reserve size #2

Open
holocronweaver opened this issue Dec 23, 2016 · 0 comments
Open

Default reserve size #2

holocronweaver opened this issue Dec 23, 2016 · 0 comments

Comments

@holocronweaver
Copy link

I would like to suggest adding a user-configurable default reserve size which applies to all future allocations, including types which have not been registered yet.

Motivation: As is, having to explicitly reserve<EachSubType>(theSameValue) somewhat defeats the polymorphic goal of the library. In most of my use cases, I simply want to set a per-segment initial size and leave it at that.

I like having the option of performing per-segment reserves if I choose, so I think leaving reserve as-is is fine, and adding a setDefaultReserve would solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant