⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bkinsert.htm

📁 这是关于VC++中的STL容器的资料,包括了STL容器各个类之间关系以及类的说明
💻 HTM
字号:
<html>
<head>
<title>back_insert_iterator</title>
<head>

<body bgcolor="#FFFFFF">

<a name="here"></a>

<img src="itbinban.gif">
<pre>

<font size=5>Class Name</font>            back_insert_iterator

<font size=5>Header File</font>          &lt;iterator&gt;

<font size=5>Classification</font>      abstract data type

</pre>

<a href="bkinsert.htm#crd">Class Relationship Diagram</a><br>
<br>
<a href="bkinsert.htm#class-descrip">Class Description</a>

<h1>Member Classes</h1>
<a href="bkinsert.htm#container">Container& container</a>

<h1>Methods</h1>
<pre>
<a href="bkinsert.htm#back-insert">explicit back_insert_iterator(Container& x);</a>

</pre>
<h1>Operators</h1>
<pre>

<a href="bkinsert.htm#operator=">back_insert_iterator&lt;Container&gt;& operator=
(const typename Container::value_type value);</a>

<a href="bkinsert.htm#operator*">back_insert_iterator&lt;Container&gt;& operator*();</a>

<a href="bkinsert.htm#operator++1">back_insert_iterator&lt;Container&gt;& operator++();</a>

<a href="bkinsert.htm#operator++2">back_insert_iterator&lt;Container&gt;& operator++(int);</a>

</pre>


<hr>






<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The back_insert_iterator is an <a href="defines.htm#insert">insert iterator</a>. It inserts elements at the end of a container by 
using the container's push_back() method to perform the insertion.
</p>
<hr>
<a name="container"><h3>Container& container</h3></a>
<p>
The <em>container</em> is the container in which elements will be inserted.
</p>

<hr>

<pre>
<a name="back-insert">
Method             back_insert_iterator()</a>

Access             Public

Classification     Constructor

Syntax             explicit back_insert_iterator(Container& x);

Paramters          <em>x</em> is the reference to the container in which elements
                   will be inserted.

Returns            None

</pre>


<h3>Description</h3>
<p>
The constructor constructs a back_insert_iterator object and initializes 
Container& container with a <em>x</em>.
</p>

<hr>

<pre>
<a name="operator*">
Method             operator*()</a>

Access             Public

Classification     Accessor

Syntax             back_insert_iterator&lt;Container&gt;& operator*();

Parameters         None

Returns            This operator returns a pointer to the current object.

</pre>

<h3>Description</h3>
<p>
The dereference operator returns *this.
</p>

<hr>

<pre>
<a name="operator++1">
Method             operator++()</a>

Access             Public

Classification     Accessor

Syntax             back_insert_iterator&lt;Container&gt;& operator++();

Parameters         None

Returns            This operator returns a pointer to the current object.

</pre>


<h3>Description</h3>
<p>
This incrementation operator returns *this.
</p>

<hr>

<pre>
<a name="operator++2">
Method             operator++()</a>

Access             Public

Classification     Accessor

Syntax             back_insert_iterator&lt;Container&gt; operator++(int x);

Parameters         <em>x</em> has no bearing on this function.

Returns            This operator returns a pointer to the current object.

</pre>

<h3>Description</h3>
<p>
This incrementation operator returns *this.
</p>

<hr>

<pre>
<a name="operator=">
Method             operator=()</a>

Access             Public

Classification     Modifier

Syntax             back_insert_iterator&lt;Container&gt;&
                   operator=(const typename Container::value_type& value);

Parameters         <em>value</em> is the reference to the type value_type that
                   is inserted into the container.

Returns            This operator returns a pointer to the current object.

</pre>

<h3>Description</h3>
<p>
The assignment operator is converted to an insertion operation using 
container.push_back(value). The operator returns *this.
</p>

<hr>

<a name="crd"><h2>The Class Relationship Diagram for back_insert_iterator</h2></a>
<img src="bkinsert.gif">
<hr>
</body>
</html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -