-
Notifications
You must be signed in to change notification settings - Fork 1.6k
P1679 string contains #1478
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
P1679 string contains #1478
Conversation
Thank you for your work in this PR! However, I'd like to note that we won't be able to review this PR for a while, as the relevant issue #1450 says:
|
My implementation is based on the I was wondering why the While this is explicitly not the case in the standard. |
The Standard historically avoided marking non-throwing but precondition-ful functions as |
Could be worth adding the explanation of the noexcept strengthening in the wiki. |
This comment has been minimized.
This comment has been minimized.
# Conflicts: # stl/inc/xstring # stl/inc/yvals_core.h
Seems like @StephanTLavavej missed one
|
# Conflicts: # stl/inc/yvals_core.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great! My apologies for the delay in reviewing your PR (due in part to C++20 marathon exhaustion and summer vacations). All I found were minor issues, so to save time I'll push changes (mainly adding constexpr
for the basic_string
overloads and updating a test accordingly) and move this to Final Review. After a second maintainer can double-check everything, we'll able to merge this for VS 2022 17.0 Preview 3.
tests/std/tests/VSO_0157762_feature_test_macros/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
Thanks for adding this feature to the Standard and implementing it here - and congratulations on your first microsoft/STL commit! 😸 🎉 🚀 This will ship in VS 2022 17.0 Preview 3. |
C++23 string contains implementation
Paper: https://wg21.link/P1679R3
Draft issue: cplusplus/draft#4328
Draft PR: cplusplus/draft#4373