Skip to content

Conversation

@Reedbeta
Copy link
Contributor

  • Move constructors and move assignment now supported on Str and its subclasses.
  • For local-buffered strings, does a copy; for heap-allocated strings, takes over the allocation from the move source; for unowned strings, points to the same memory as the move source.
  • Allows using Str and friends in containers like std::vector, without incurring extra allocations when the container is resized.

Reedbeta added 2 commits July 12, 2020 12:33
- Move constructors and move assignment now supported on Str and its subclasses.
- For local-buffered strings, does a copy; for heap-allocated strings, takes over the allocation from the move source; for unowned strings, points to the same memory as the move source.
- Allows using Str and friends in containers like std::vector, without incurring extra allocations when the container is resized.
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.

1 participant