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

add push_back(T&&) overload and no-op shrink_to_fit in basic_vector #242

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

maichmueller
Copy link
Contributor

Hi,

this tiny PR would bring cista::basic_vector a little closer to the std::vector interface by adding

Particularly, the shrink-to-fit function being a no-op is explicitly allowed by the standard as an implementation choice for std::vector.

The lack of these two functions has posed a problem to me when using cista with some 3rd-party libraries. Let me know if you want something changed!

@felixguendling felixguendling merged commit 989b7d5 into felixguendling:master Dec 5, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants