Namespaces
Variants

Standard library header <experimental/ranges/range>

From cppreference.net
Standard library headers

此头文件属于 ranges 库。

目录

Range concepts

定义于命名空间 std::experimental::ranges
规定类型为范围,即提供 begin 迭代器与 end 哨位
(概念)
规定范围可在常数时间内获知其大小
(概念)
规定范围为视图,即拥有常数时间复制/移动/赋值操作
(概念)
规定范围拥有相同的迭代器与哨位类型
(概念)
规定范围的迭代器类型满足 InputIterator
(概念)
规定范围的迭代器类型满足 OutputIterator
(概念)
规定范围的迭代器类型满足 ForwardIterator
(概念)
规定范围的迭代器类型满足 BidirectionalIterator
(概念)
规定范围的迭代器类型满足 RandomAccessIterator
(概念)

范围访问

定义于命名空间 std::experimental::ranges
返回指向范围起始的迭代器
(定制点对象)
返回指向范围末尾的迭代器
(定制点对象)
返回指向范围的反向迭代器
(定制点对象)
返回指向范围反向末尾的迭代器
(定制点对象)

范围原语

定义于命名空间 std::experimental::ranges
获取可在常量时间内计算大小的范围尺寸
(定制点对象)
检查范围是否为空
(定制点对象)
获取连续范围起始位置的指针
(定制点对象)
获取范围的迭代器和哨兵类型
(别名模板)

概要

#include <experimental/ranges/iterator>
namespace std { namespace experimental { namespace ranges { inline namespace v1 {
namespace {
  constexpr /* 未指定 */ begin = /* 未指定 */;
  constexpr /* 未指定 */ end = /* 未指定 */;
  constexpr /* 未指定 */ cbegin = /* 未指定 */;
  constexpr /* 未指定 */ cend = /* 未指定 */;
  constexpr /* 未指定 */ rbegin = /* 未指定 */;
  constexpr /* 未指定 */ rend = /* 未指定 */;
  constexpr /* 未指定 */ crbegin = /* 未指定 */;
  constexpr /* 未指定 */ crend = /* 未指定 */;
}
namespace {
  constexpr /* 未指定 */ size = /* 未指定 */;
  constexpr /* 未指定 */ empty = /* 未指定 */;
  constexpr /* 未指定 */ data = /* 未指定 */;
  constexpr /* 未指定 */ cdata = /* 未指定 */;
}
template <class T>
using iterator_t = decltype(ranges::begin(declval<T&>()));
template <class T>
using sentinel_t = decltype(ranges::end(declval<T&>()));
template <class>
constexpr bool disable_sized_range = false;
template <class T>
struct enable_view { };
struct view_base { };
template <class T>
concept bool Range = /* 参见定义 */;
template <class T>
concept bool SizedRange = /* 参见定义 */;
template <class T>
concept bool View = /* 参见定义 */;
template <class T>
concept bool BoundedRange = /* 参见定义 */;
template <class T>
concept bool InputRange = /* 参见定义 */;
template <class R, class T>
concept bool OutputRange = /* 参见定义 */;
template <class T>
concept bool ForwardRange = /* 参见定义 */;
template <class T>
concept bool BidirectionalRange = /* 参见定义 */;
template <class T>
concept bool RandomAccessRange = /* 参见定义 */;
}}}}