[c10] Make basic_string_view inherit from std::basic_string_view#184152
[c10] Make basic_string_view inherit from std::basic_string_view#184152cyyever wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/184152
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 7 PendingAs of commit 633ef66 with merge base 428e02e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "topic: not user facing" |
a4748a9 to
f1f8e9e
Compare
f1f8e9e to
f233908
Compare
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
|
Successfully rebased |
f233908 to
115b9a5
Compare
|
@pytorchbot merge -r |
|
This PR needs to be approved by an authorized maintainer before merge. |
|
@pytorchbot rebase |
Skylion007
left a comment
There was a problem hiding this comment.
Just some minor nits mostly. Otherwise good and reduces code duplication.
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Originally a port for pre-constexpr std::char_traits; C++20 fixed that. Override only at()/substr() (CUDA no-throw) and remove_prefix/ suffix (throw on OOB where std specifies UB).
|
Successfully rebased |
115b9a5 to
633ef66
Compare
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This PR simplifies c10:: basic_string_view body and keeps minimal methods.