Commit 67f61a81 authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

Update range-v3 to v1.0-beta from upstream.

Summary:
The v1.0-beta branch of range-v3 has better compile times and improved conformance to the C++20 standard range interfaces.

I will update this again when range-v3 v1.0 final is released, but at this point the benefits are great, and I am concerned about interface drift.

Reviewed By: yfeldblum

Differential Revision: D13647816

fbshipit-source-id: 340da2c177e1dc053facc84506a96e767e11f10d
parent 9a9d6efb
......@@ -308,7 +308,7 @@ typename std::enable_if<!HasLess<U, T>::value, bool>::type downTo(
* Look at the Ranges-v3 views and you'll probably find an easier way to build
* the view you want but the equivalent is roughly:
*
* for (auto& element : make_iterator_range(begin, end))
* for (auto& element : make_subrange(begin, end))
*/
#define FOR_EACH_RANGE(i, begin, end) \
for (auto i = (true ? (begin) : (end)); \
......@@ -319,7 +319,7 @@ typename std::enable_if<!HasLess<U, T>::value, bool>::type downTo(
* Look at the Ranges-v3 views and you'll probably find an easier way to build
* the view you want but the equivalent is roughly:
*
* for (auto& element : make_iterator_range(begin, end) | view::reverse)
* for (auto& element : make_subrange(begin, end) | view::reverse)
*/
#define FOR_EACH_RANGE_R(i, begin, end) \
for (auto i = (false ? (begin) : (end)); ::folly::detail::downTo(i, (begin));)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment