-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move almost all view functions on
best::vec
and best::strbuf
behi…
…nd `operator->` (#25) This patch introduces `best::arrow<T>`, a helper for returning anything out of an `operator->`. The doc comment on the type explains why it exists and what C++ semantics it abuses. `best::vec` and `best::strbuf` now have `operator->`s that effectively return `best::span` and `best::str`, respectively. This allows the removal of a ton of duplicated functions, and means that the owned types can't "lag" behind the unowned types! This also means that e.g. `best::box<T[]>` does not need to duplicate all of the functions from `best::span`, like to `best::vec` used to.
- Loading branch information
Showing
10 changed files
with
319 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.