Skip to content

Conversation

@brampedgex
Copy link
Contributor

@brampedgex brampedgex commented Mar 29, 2025

This PR adds hat::cow<T>, a copy-on-write wrapper for dynamically allocated containers.

What's done so far:

  • cow<T> and its basic API
  • cow_traits specializations for std::basic_string_view, hat::basic_cstring_view, and std::span
  • Basic allocator support (default construction only)
  • Support allocator args in constructors
  • Make the STL know we are allocator-aware

@brampedgex brampedgex marked this pull request as draft March 29, 2025 01:30
@brampedgex
Copy link
Contributor Author

rebase

@brampedgex brampedgex marked this pull request as ready for review March 29, 2025 07:11
@brampedgex brampedgex changed the title [Draft] Copy-on-write wrapper Copy-on-write wrapper Mar 29, 2025
@ZeroMemes ZeroMemes assigned ZeroMemes and unassigned ZeroMemes Mar 29, 2025
@ZeroMemes ZeroMemes merged commit 69149a1 into BasedInc:master Mar 31, 2025
14 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