YSTest: ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference > 模板类 参考

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

Public 类型 | Public 成员函数 | Protected 类型 | Protected 成员函数 | 友元 | 所有成员列表
ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference > 模板类 参考
Iterators » Iterator Adaptors

动态泛型前向迭代器。 更多...

`#include <any_iterator.hpp>`

类 ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference > 继承关系图:
[图例]
ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference > 的协作图:
[图例]

## Public 类型

using | iterator_category = std::forward_iterator_tag
using | pointer = _tPointer
using | reference = _tReference
Public 类型 继承自 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >
using | pointer = _tPointer
using | reference = _tReference
using | iterator_category = std::input_iterator_tag
using | value_type = _type
using | difference_type = _tDifference

## Public 成员函数

| any_forward_iterator ()=default
template<typename _tIter , typename = exclude_self_t<any_forward_iterator, _type>>
| any_forward_iterator (_tIter &&i)
| 构造：使用现有迭代器。 更多...
| any_forward_iterator (const any_forward_iterator &)=default
| any_forward_iterator (any_forward_iterator &&)=default
any_forward_iterator & | operator++ ()
any_forward_iterator & | operator= (const any_forward_iterator &)=default
any_forward_iterator & | operator= (any_forward_iterator &&)=default
Public 成员函数 继承自 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >
| any_input_iterator ()=default
template<typename _tIter , typename = exclude_self_t<any_input_iterator, _type>>
| any_input_iterator (_tIter &&i)
| 构造：使用现有迭代器。 更多...
| any_input_iterator (const any_input_iterator &)=default
| any_input_iterator (any_input_iterator &&)=default
reference | operator* () const
pointer | operator-> () const
any_input_iterator & | operator++ ()
any_input_iterator & | operator= (const any_input_iterator &)=default
any_input_iterator & | operator= (any_input_iterator &&)=default
any & | get ()
const any & | get () const

## Protected 类型

using | base = any_input_iterator< _type, _tDifference, _tPointer, _tReference >
Protected 类型 继承自 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >
using | base = any

## Protected 成员函数

template<typename _tIter , typename _tHandler >
| any_forward_iterator (any_ops::with_handler_t< _tHandler > t, _tIter &&i)
Protected 成员函数 继承自 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >
template<typename _tIter , typename _tHandler >
| any_input_iterator (any_ops::with_handler_t< _tHandler > t, _tIter &&i)
Protected 成员函数 继承自 ystdex::any
| any ()=default
template<typename _type , typename = exclude_self_t<any, _type>, typename = enable_if_t<!is_reference_wrapper<decay_t<_type>>::value>>
| any (_type &&x)
template<typename _type >
| any (_type &&x, any_ops::use_holder_t)
template<class _tHandler , typename... _tParams>
| any (any_ops::with_handler_t< _tHandler > t, _tParams &&...args)
| any (const any &)
| any (any &&a)
| ~any ()
template<typename _type , typename = exclude_self_t<any, _type>>
any & | operator= (_type &&x)
any & | operator= (const any &a)
| 复制赋值：使用复制和交换。 更多...
any & | operator= (any &&a)
| 转移赋值：使用复制和交换。 更多...
void | clear ()
void | swap (any &a)
const type_info & | type () const
template<typename _type , typename = enable_if_t<is_reference_wrapper<decay_t<_type>>::value>>
| any (_type &&x)
template<typename _type , typename... _tParams>
| any (any_ops::in_place_t< _type >, _tParams &&...args)
template<typename _tHolder >
| any (any_ops::use_holder_t, std::unique_ptr< _tHolder > p)
| 构造：使用指定持有者。 更多...
template<typename _tHolder >
| any (any_ops::use_holder_t, _tHolder &&h)
template<typename _tHolder , typename... _tParams>
| any (any_ops::use_holder_t, any_ops::in_place_t< _tHolder >, _tParams &&...args)
void * | get () const
any_ops::holder * | get_holder () const
template<typename _type >
_type * | target ()
| 取目标指针。 更多...
template<typename _type >
const _type * | target () const
void * | unchecked_get () const
| 取包含对象的指针。 更多...
any_ops::holder * | unchecked_get_holder () const
| 取持有者指针。 更多...
const type_info & | unchecked_type () const
| 取包含对象的类型。 更多...

## 友元

bool | operator== (const any_forward_iterator &x, const any_forward_iterator &y)

## 额外继承的成员函数

相关函数 继承自 ystdex::any
void | swap (any &x, any &y)
| 交换对象。 更多...
template<typename _type >
_type * | any_cast (any *p)
| 动态泛型转换。 更多...
template<typename _tValue >
_tValue | any_cast (any &x)
template<typename _tValue >
_tValue | any_cast (any &&x)
template<typename _type >
_type * | unchecked_any_cast (any *p)
| 未检查的动态泛型转换。 更多...
template<typename _type >
const _type * | unchecked_any_cast (const any *p)
template<typename _type >
_type * | unsafe_any_cast (any *p)
| 非安全动态泛型转换。 更多...
template<typename _type >
const _type * | unsafe_any_cast (const any *p)

## 详细描述

### template<typename _type, typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
class ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >

动态泛型前向迭代器。

在文件 any_iterator.hpp 第 341 行定义.

## 成员类型定义说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

using ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::base = any_input_iterator<_type, _tDifference, _tPointer, _tReference>

protected

自从
  build 686

在文件 any_iterator.hpp 第 348 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

using ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::iterator_category = std::forward_iterator_tag

在文件 any_iterator.hpp 第 351 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

using ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::pointer = _tPointer

在文件 any_iterator.hpp 第 352 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

using ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::reference = _tReference

在文件 any_iterator.hpp 第 353 行定义.

## 构造及析构函数说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::any_forward_iterator | ( |  | ) |

default

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
template<typename _tIter , typename = exclude_self_t<any_forward_iterator, _type>>

ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::any_forward_iterator | ( | _tIter && | i | ) |

inline

构造：使用现有迭代器。

自从
  build 686

在文件 any_iterator.hpp 第 362 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
template<typename _tIter , typename _tHandler >

ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::any_forward_iterator | ( | any_ops::with_handler_t< _tHandler > | t,
|  | _tIter && | i
| ) |  |

inlineprotected

自从
  build 686

在文件 any_iterator.hpp 第 374 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::any_forward_iterator | ( | const any_forward_iterator< _type, _tDifference, _tPointer, _tReference > & |  | ) |

default

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::any_forward_iterator | ( | any_forward_iterator< _type, _tDifference, _tPointer, _tReference > && |  | ) |

default

## 成员函数说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

any_forward_iterator& ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::operator++ | ( |  | ) |

inline

在文件 any_iterator.hpp 第 391 行定义.

参考 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator++().

参考自 ystdex::any_bidirectional_iterator< _type, _tDifference, _tPointer, _tReference >::operator++().

函数调用图:

这是这个函数的调用关系图:
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

any_forward_iterator& ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::operator= | ( | const any_forward_iterator< _type, _tDifference, _tPointer, _tReference > & |  | ) |

default

自从
  build 454

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

any_forward_iterator& ystdex::any_forward_iterator< _type, _tDifference, _tPointer, _tReference >::operator= | ( | any_forward_iterator< _type, _tDifference, _tPointer, _tReference > && |  | ) |

default

## 友元及相关函数文档

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>

bool operator== | ( | const any_forward_iterator< _type, _tDifference, _tPointer, _tReference > & | x,
|  | const any_forward_iterator< _type, _tDifference, _tPointer, _tReference > & | y
| ) |  |

friend

自从
  build 676

在文件 any_iterator.hpp 第 399 行定义.

该类的文档由以下文件生成:

- any_iterator.hpp