-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Efficient Access To basic_stringbuf's Buffer #919
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
Merged
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
3c0184a
Add methods & implementations except move ones.
Berrysoft 6524bb0
[WIP] Add new methods to string.
Berrysoft 7f67b8b
Complete _Release_to_buffer
Berrysoft 88d4d99
Add to yvals_core.
Berrysoft e93c67f
Add test.
Berrysoft b1cdf97
Simplify view type.
Berrysoft 0aee2b5
Fix string view typedef in sstream.
Berrysoft b8a3009
Fix build
Berrysoft 4975e55
Fix build.
Berrysoft 99bf2c6
Fix rvalue of string.
Berrysoft 213b078
Fix typo
Berrysoft f056152
Pass test.
Berrysoft 9d7726b
Fix typo.
Berrysoft 662e683
Fix for read-write buffer.
Berrysoft 66b6074
Fix for fancy pointer.
Berrysoft 8797986
Fix for 27 requested changes.
Berrysoft 038f6dd
Use _STL_INTERNAL_CHECK
Berrysoft 325427e
Use _Prev_iter
Berrysoft 167e601
Add test for empty string.
Berrysoft f8fbede
Clearify noexcept
Berrysoft 7a77452
More tests
Berrysoft 868be85
Remove noexcept of _Move_assign_from_buffer
Berrysoft 785f078
Handle pocma and small mode.
Berrysoft 56db765
Add test for allocator equality when move construction and assignment.
Berrysoft 436048b
Reduce some copy of allocator.
Berrysoft 6c36fde
Add fancy pointer test for stringbuf
Berrysoft c53440c
Add test for stringstream(stringbuf) move.
Berrysoft 734037e
Replace interal check of allocator to assert.
Berrysoft ee06372
Allocate 1 byte larger to avoid small mode
Berrysoft 989ff9d
Use template and constexpr-if for compile-time constant.
Berrysoft d59191e
Handle allocator separately
Berrysoft cafaa1f
Move allocator to string.
Berrysoft 4de8806
Reduce duplicated code.
Berrysoft 7702315
Test allocate times.
Berrysoft f0e0fc3
Remove iostream in test
Berrysoft 4629ab8
Inline _Init_inplace
Berrysoft c5edf9a
Add iterator checks
Berrysoft e2769b0
Try to fix iterator debug
Berrysoft 1e77d97
Fix for allocator.
Berrysoft 9b8ddfb
Fix pocma
Berrysoft 54d0467
Make it obvious for full buffer.
Berrysoft 725b159
Fix allocator counting.
Berrysoft 8e2e63f
Add flags for stringbuf constructed from rvalue of string
Berrysoft f58ef2b
Add output for possibly failed test.
Berrysoft 15683ec
Use _Refancy
Berrysoft 3b30c60
Use right reserved space of string.
Berrysoft c6839ab
Disable some death test when _ITERATOR_DEBUG_LEVEL==1
Berrysoft 224afe8
Right res for move assign from buffer of string
Berrysoft fb58927
Make res space constant in small mode.
Berrysoft a292935
Fix declaration of str() const &
Berrysoft 816d24b
Comments.
Berrysoft bcdb971
Use concept _Allocator instead of enable_if
Berrysoft 1c797bd
Fix typo.
Berrysoft 9146c9a
Add test of allocator value of stringbuf.
Berrysoft 51bb438
Add comments.
Berrysoft af7e68b
Add comments clarifing the overload selection.
Berrysoft cb34575
Merge branch 'master' of https://github.com/microsoft/STL into micros…
Berrysoft ab640c9
Merge branch 'microsoft-master' into stringbuf_view
Berrysoft 59d4ebe
Merge branch 'master' into stringbuf_view
StephanTLavavej f4ab8e2
Merge branch 'master' into stringbuf_view
StephanTLavavej 94bbb1c
Drop `std::`.
StephanTLavavej 9611287
Remove `allocator` data member.
StephanTLavavej efac7f0
Add missing includes.
StephanTLavavej fd70b56
Other code review feedback for the test.
StephanTLavavej 0de5a7e
Strengthen noexcept on swap.
StephanTLavavej f3a0dee
Add missing explicit.
StephanTLavavej 776ceab
Fix ios_base::in/out flags.
StephanTLavavej 71181c6
Rename to _Size, _Res.
StephanTLavavej 9a47f73
Drop unnecessary static_cast<allocator_type>.
StephanTLavavej a962d95
Improve comments.
StephanTLavavej 2d7f2b1
Use empty braces to construct temporaries.
StephanTLavavej 352c60e
Use `if constexpr` to improve assertion.
StephanTLavavej f1073f4
Overhaul constraints.
StephanTLavavej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.