[libcxx-commits] [PATCH] D65721: Make rotate a constexpr
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 4 10:28:01 PDT 2019
zoecarver created this revision.
zoecarver added reviewers: mclow.lists, EricWF, ldionne.
Herald added subscribers: libcxx-commits, dexonsmith, christof.
This patch makes `std::rotate` a constexpr. This way it can be used in other constexpr functions such as `shift_left` and `shift_right`.
Repository:
rCXX libc++
https://reviews.llvm.org/D65721
Files:
libcxx/include/algorithm
libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/rotate.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65721.213249.patch
Type: text/x-patch
Size: 4036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190804/8ed721e2/attachment-0001.bin>
More information about the libcxx-commits
mailing list