📄 itraits.htm
字号:
<html>
<head>
<title>iterator_traits</title>
<head>
<body bgcolor="#FFFFFF">
<a name="here"</a>
<img src="itratban.gif">
<pre>
<font size=5>Class Name</font> iterator_traits
<font size=5>Header File</font> <iterator>
<font size=5>Classification</font> abstract data type
</pre>
<a href="itraits.htm#crd">Class Relationship Diagram</a><br>
<br>
<a href="itraits.htm#class-descrip">Class Description</a>
<h1>Member Classes</h1>
<p>
None
</p>
<h1>Types</h1>
<pre>
<a href="itraits.htm#difference">Iterator::difference_type difference_type</a>
<a href="itraits.htm#value">Iterator::value_type value_type</a>
<a href="itraits.htm#pointer">Iterator::pointer pointer</a>
<a href="itraits.htm#reference">Iterator::reference reference</a>
<a href="itraits.htm#category">Iterator::iterator_category iterator_category</a>
</pre>
<hr>
<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The iterator_traits template class describes the types associated with an iterator. They are described as type definitions. There is a iterator_traits<Iterator> defined for every iterator type. If there is to be a new iterator type to be defined and the d
efault type definitions are not adequate, a new iterator_traits<Iterator> is implicitly generated.
</p>
<hr>
<a name="difference"><h3>Iterator::difference_type difference_type</h3></a>
<p>
difference_type is of type Distance used to represent the difference between two iterators.
</p>
<hr>
<a name="value"><h3>Iterator::value_type value_type</h3></a>
<p>
value_type is of type T, a class of objects that the iterator is pointing,
</p>
<hr>
<a name="pointer"><h3>Iterator::pointer pointer</h3></a>
<p>
pointer has a default Pointer to type T.
</p>
<hr>
<a name="reference"><h3>Iterator::reference reference</h3></a>
<p>
reference has a default Reference to type T.
</p>
<hr>
<a name="category"><h3>Iterator::iterator_category iterator_category</h3></a>
<p>
The iterator type defined by an iterator tag of the most specific iterator behavior. These are the five iterator tags which
represent the five types of iterators:<br>
<br>
</p>
<pre>
input_iterator_tag
output_iterator_tag
forward_iterator_tag
bidirectional_iterator_tag
random_access_iterator_tag
</pre>
<hr>
<a name="crd"><h2>The Class Relationship Diagram for iterator_traits</h2></a>
<img src="itraits.gif">
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -