[libcxx-commits] [PATCH] D60027: Add shift functions (P0769)
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 31 21:39:31 PDT 2019
zoecarver updated this revision to Diff 212724.
zoecarver added a comment.
Fix the complexity of `shift_right`. The only case where this function is more complex than the standard (assuming `shift_left` is also updated) is when `n` is greater than `std::distance(first, last) - n`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60027/new/
https://reviews.llvm.org/D60027
Files:
libcxx/include/algorithm
libcxx/test/std/algorithms/alg.shift/shift_left.pass.cpp
libcxx/test/std/algorithms/alg.shift/shift_right.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60027.212724.patch
Type: text/x-patch
Size: 14669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190801/0d3d3b47/attachment.bin>
More information about the libcxx-commits
mailing list