.TH "std::back_insert_iterator< _Container >" 3cxx "Wed Jul 14 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::back_insert_iterator< _Container > \- Turns assignment into insertion\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::iterator< output_iterator_tag, void, void, void, void >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _Container \fBcontainer_type\fP" .br .RI "A nested typedef for the type of whatever container you used\&. " .ti -1c .RI "typedef void \fBdifference_type\fP" .br .RI "Distance between iterators is represented as this type\&. " .ti -1c .RI "typedef \fBoutput_iterator_tag\fP \fBiterator_category\fP" .br .RI "One of the \fBtag types\fP\&. " .ti -1c .RI "typedef void \fBpointer\fP" .br .RI "This type represents a pointer-to-value_type\&. " .ti -1c .RI "typedef void \fBreference\fP" .br .RI "This type represents a reference-to-value_type\&. " .ti -1c .RI "typedef void \fBvalue_type\fP" .br .RI "The type 'pointed to' by the iterator\&. " .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBback_insert_iterator\fP (_Container &__x)" .br .RI "The only way to create this iterator is with a container\&. " .ti -1c .RI "constexpr \fBback_insert_iterator\fP & \fBoperator*\fP ()" .br .RI "Simply returns *this\&. " .ti -1c .RI "constexpr \fBback_insert_iterator\fP & \fBoperator++\fP ()" .br .RI "Simply returns *this\&. (This iterator does not \fImove\fP\&.) " .ti -1c .RI "constexpr \fBback_insert_iterator\fP \fBoperator++\fP (int)" .br .RI "Simply returns *this\&. (This iterator does not \fImove\fP\&.) " .ti -1c .RI "constexpr \fBback_insert_iterator\fP & \fBoperator=\fP (const typename _Container::value_type &__value)" .br .ti -1c .RI "constexpr \fBback_insert_iterator\fP & \fBoperator=\fP (typename _Container::value_type &&__value)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "_Container * \fBcontainer\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::back_insert_iterator< _Container >" Turns assignment into insertion\&. These are output iterators, constructed from a container-of-T\&. Assigning a T to the iterator appends it to the container using push_back\&. .PP Tip: Using the back_inserter function to create these iterators can save typing\&. .PP Definition at line 599 of file bits/stl_iterator\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _Container \fBstd::back_insert_iterator\fP< _Container >::\fBcontainer_type\fP" .PP A nested typedef for the type of whatever container you used\&. .PP Definition at line 607 of file bits/stl_iterator\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBdifference_type\fP\fC [inherited]\fP" .PP Distance between iterators is represented as this type\&. .PP Definition at line 134 of file stl_iterator_base_types\&.h\&. .SS "typedef \fBoutput_iterator_tag\fP \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBiterator_category\fP\fC [inherited]\fP" .PP One of the \fBtag types\fP\&. .PP Definition at line 130 of file stl_iterator_base_types\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBpointer\fP\fC [inherited]\fP" .PP This type represents a pointer-to-value_type\&. .PP Definition at line 136 of file stl_iterator_base_types\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBreference\fP\fC [inherited]\fP" .PP This type represents a reference-to-value_type\&. .PP Definition at line 138 of file stl_iterator_base_types\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBvalue_type\fP\fC [inherited]\fP" .PP The type 'pointed to' by the iterator\&. .PP Definition at line 132 of file stl_iterator_base_types\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fBstd::back_insert_iterator\fP< _Container >::\fBback_insert_iterator\fP (_Container & __x)\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP" .PP The only way to create this iterator is with a container\&. .PP Definition at line 616 of file bits/stl_iterator\&.h\&. .SH "Member Function Documentation" .PP .SS "template constexpr \fBback_insert_iterator\fP& \fBstd::back_insert_iterator\fP< _Container >::operator* ()\fC [inline]\fP, \fC [constexpr]\fP" .PP Simply returns *this\&. .PP Definition at line 658 of file bits/stl_iterator\&.h\&. .SS "template constexpr \fBback_insert_iterator\fP& \fBstd::back_insert_iterator\fP< _Container >::operator++ ()\fC [inline]\fP, \fC [constexpr]\fP" .PP Simply returns *this\&. (This iterator does not \fImove\fP\&.) .PP Definition at line 664 of file bits/stl_iterator\&.h\&. .SS "template constexpr \fBback_insert_iterator\fP \fBstd::back_insert_iterator\fP< _Container >::operator++ (int)\fC [inline]\fP, \fC [constexpr]\fP" .PP Simply returns *this\&. (This iterator does not \fImove\fP\&.) .PP Definition at line 670 of file bits/stl_iterator\&.h\&. .SS "template constexpr \fBback_insert_iterator\fP& \fBstd::back_insert_iterator\fP< _Container >::operator= (const typename _Container::value_type & __value)\fC [inline]\fP, \fC [constexpr]\fP" .PP \fBParameters\fP .RS 4 \fI__value\fP An instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container\&. .RE .PP \fBReturns\fP .RS 4 This iterator, for chained operations\&. .RE .PP This kind of iterator doesn't really have a \fIposition\fP in the container (you can think of the position as being permanently at the end, if you like)\&. Assigning a value to the iterator will always append the value to the end of the container\&. .PP Definition at line 640 of file bits/stl_iterator\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.