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

std::string::resize_and_overwrite #17

Closed
kloetzl opened this issue Mar 10, 2022 · 0 comments
Closed

std::string::resize_and_overwrite #17

kloetzl opened this issue Mar 10, 2022 · 0 comments
Labels
optimization Enhance existing functionality

Comments

@kloetzl
Copy link
Owner

kloetzl commented Mar 10, 2022

C++23 provides a new method resize_and_overwrite to allow access to the uninitialized bytes of the buffer. This can be used to skip the default initialisation.

@kloetzl kloetzl added new functionality New feature or request optimization Enhance existing functionality and removed new functionality New feature or request labels Mar 10, 2022
@kloetzl kloetzl mentioned this issue Dec 27, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Enhance existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant