MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
标准迭代器

包装底层迭代器的标准适配器 更多...

class  normal_iterator< Iterator >
 标准迭代器适配器 更多...

函数

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator== (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 相等比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator== (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 相等比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator!= (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 不等比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator!= (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 不等比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator< (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 小于比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator< (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 小于比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator> (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 大于比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator> (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 大于比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator<= (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 小于等于比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator<= (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 小于等于比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator>= (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept
 大于等于比较运算符
template<typename Iterator>
MSTL_NODISCARD constexpr bool operator>= (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 大于等于比较运算符
template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr auto operator- (const normal_iterator< LeftIter > &lhs, const normal_iterator< RightIter > &rhs) noexcept -> decltype(lhs.base() - rhs.base())
 减法运算符
template<typename Iterator>
MSTL_NODISCARD constexpr normal_iterator< Iterator >::difference_type operator- (const normal_iterator< Iterator > &lhs, const normal_iterator< Iterator > &rhs) noexcept
 减法运算符
template<typename Iterator>
MSTL_NODISCARD constexpr normal_iterator< Iterator > operator+ (iter_difference_t< normal_iterator< Iterator > > n, const normal_iterator< Iterator > &iter) noexcept
 加法运算符

详细描述

包装底层迭代器的标准适配器

函数说明

◆ operator!=() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator!= ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

不等比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp215 行定义.

◆ operator!=() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator!= ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

不等比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp204 行定义.

◆ operator+()

template<typename Iterator>
MSTL_NODISCARD constexpr normal_iterator< Iterator > operator+ ( iter_difference_t< normal_iterator< Iterator > > n,
const normal_iterator< Iterator > & iter )
constexprnoexcept

加法运算符

模板参数
Iterator迭代器类型
参数
n偏移量
iter迭代器
返回
偏移后的新迭代器

在文件 normal_iterator.hpp348 行定义.

◆ operator-() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr normal_iterator< Iterator >::difference_type operator- ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

减法运算符

模板参数
Iterator迭代器类型
返回
两个迭代器之间的距离

在文件 normal_iterator.hpp334 行定义.

◆ operator-() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr auto operator- ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs ) -> decltype(lhs.base() - rhs.base())
constexprnoexcept

减法运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型
返回
两个迭代器之间的距离

在文件 normal_iterator.hpp320 行定义.

◆ operator<() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator< ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

小于比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp238 行定义.

◆ operator<() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator< ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

小于比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp227 行定义.

◆ operator<=() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator<= ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

小于等于比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp284 行定义.

◆ operator<=() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator<= ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

小于等于比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp273 行定义.

◆ operator==() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator== ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

相等比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp192 行定义.

◆ operator==() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator== ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

相等比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp181 行定义.

◆ operator>() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator> ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

大于比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp261 行定义.

◆ operator>() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator> ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

大于比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp250 行定义.

◆ operator>=() [1/2]

template<typename Iterator>
MSTL_NODISCARD constexpr bool operator>= ( const normal_iterator< Iterator > & lhs,
const normal_iterator< Iterator > & rhs )
constexprnoexcept

大于等于比较运算符

模板参数
Iterator迭代器类型

在文件 normal_iterator.hpp307 行定义.

◆ operator>=() [2/2]

template<typename LeftIter, typename RightIter>
MSTL_NODISCARD constexpr bool operator>= ( const normal_iterator< LeftIter > & lhs,
const normal_iterator< RightIter > & rhs )
constexprnoexcept

大于等于比较运算符

模板参数
LeftIter左操作数迭代器类型
RightIter右操作数迭代器类型

在文件 normal_iterator.hpp296 行定义.