P1679 string contains - #1478
Stephan T. Lavavej (StephanTLavavej) merged 8 commits into
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 Stephan T. Lavavej (@StephanTLavavej) missed one
|
# Conflicts: # stl/inc/yvals_core.h
Stephan T. Lavavej (StephanTLavavej)
left a comment
There was a problem hiding this comment.
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.
|
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