.TH "std::__debug::forward_list< _Tp, _Alloc >" 3cxx "Tue Jul 2 2019" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::__debug::forward_list< _Tp, _Alloc > \- Class std::forward_list with safety/checking/debug instrumentation\&. .SH SYNOPSIS .br .PP .PP Inherits \fB__gnu_debug::_Safe_container< forward_list< _Tp, _Alloc >, _Alloc, __gnu_debug::_Safe_forward_list >\fP, and forward_list< _Tp, _Alloc >\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _Base::allocator_type \fBallocator_type\fP" .br .ti -1c .RI "typedef \fB__gnu_debug::_Safe_iterator\fP< \fB_Base_const_iterator\fP, \fBforward_list\fP > \fBconst_iterator\fP" .br .ti -1c .RI "typedef _Base::const_pointer \fBconst_pointer\fP" .br .ti -1c .RI "typedef _Base::const_reference \fBconst_reference\fP" .br .ti -1c .RI "typedef _Base::difference_type \fBdifference_type\fP" .br .ti -1c .RI "typedef \fB__gnu_debug::_Safe_iterator\fP< \fB_Base_iterator\fP, \fBforward_list\fP > \fBiterator\fP" .br .ti -1c .RI "typedef _Base::pointer \fBpointer\fP" .br .ti -1c .RI "typedef _Base::reference \fBreference\fP" .br .ti -1c .RI "typedef _Base::size_type \fBsize_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBforward_list\fP (const allocator_type &__al) noexcept" .br .ti -1c .RI "\fBforward_list\fP (const \fBforward_list\fP &__list, const allocator_type &__al)" .br .ti -1c .RI "\fBforward_list\fP (\fBforward_list\fP &&__list, const allocator_type &__al)" .br .ti -1c .RI "\fBforward_list\fP (size_type __n, const allocator_type &__al=allocator_type())" .br .ti -1c .RI "\fBforward_list\fP (size_type __n, const _Tp &__value, const allocator_type &__al=allocator_type())" .br .ti -1c .RI "template> \fBforward_list\fP (_InputIterator __first, _InputIterator __last, const allocator_type &__al=allocator_type())" .br .ti -1c .RI "\fBforward_list\fP (const \fBforward_list\fP &)=default" .br .ti -1c .RI "\fBforward_list\fP (\fBforward_list\fP &&)=default" .br .ti -1c .RI "\fBforward_list\fP (\fBstd::initializer_list\fP< _Tp > __il, const allocator_type &__al=allocator_type())" .br .ti -1c .RI "\fB_Base\fP & \fB_M_base\fP () noexcept" .br .ti -1c .RI "const \fB_Base\fP & \fB_M_base\fP () const noexcept" .br .ti -1c .RI "void \fB_M_invalidate_if\fP (_Predicate __pred)" .br .ti -1c .RI "void \fB_M_swap\fP (_Safe_container &__x) noexcept" .br .ti -1c .RI "void \fB_M_transfer_from_if\fP (_Safe_sequence &__from, _Predicate __pred)" .br .ti -1c .RI "template> void \fBassign\fP (_InputIterator __first, _InputIterator __last)" .br .ti -1c .RI "void \fBassign\fP (size_type __n, const _Tp &__val)" .br .ti -1c .RI "void \fBassign\fP (\fBstd::initializer_list\fP< _Tp > __il)" .br .ti -1c .RI "\fBiterator\fP \fBbefore_begin\fP () noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBbefore_begin\fP () const noexcept" .br .ti -1c .RI "\fBiterator\fP \fBbegin\fP () noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBbegin\fP () const noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBcbefore_begin\fP () const noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBcbegin\fP () const noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBcend\fP () const noexcept" .br .ti -1c .RI "void \fBclear\fP () noexcept" .br .ti -1c .RI "template \fBiterator\fP \fBemplace_after\fP (\fBconst_iterator\fP __pos, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "\fBiterator\fP \fBend\fP () noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBend\fP () const noexcept" .br .ti -1c .RI "\fBiterator\fP \fBerase_after\fP (\fBconst_iterator\fP __pos)" .br .ti -1c .RI "\fBiterator\fP \fBerase_after\fP (\fBconst_iterator\fP __pos, \fBconst_iterator\fP __last)" .br .ti -1c .RI "reference \fBfront\fP ()" .br .ti -1c .RI "const_reference \fBfront\fP () const" .br .ti -1c .RI "\fBiterator\fP \fBinsert_after\fP (\fBconst_iterator\fP __pos, const _Tp &__val)" .br .ti -1c .RI "\fBiterator\fP \fBinsert_after\fP (\fBconst_iterator\fP __pos, _Tp &&__val)" .br .ti -1c .RI "\fBiterator\fP \fBinsert_after\fP (\fBconst_iterator\fP __pos, size_type __n, const _Tp &__val)" .br .ti -1c .RI "template> \fBiterator\fP \fBinsert_after\fP (\fBconst_iterator\fP __pos, _InputIterator __first, _InputIterator __last)" .br .ti -1c .RI "\fBiterator\fP \fBinsert_after\fP (\fBconst_iterator\fP __pos, \fBstd::initializer_list\fP< _Tp > __il)" .br .ti -1c .RI "void \fBmerge\fP (\fBforward_list\fP &&__list)" .br .ti -1c .RI "void \fBmerge\fP (\fBforward_list\fP &__list)" .br .ti -1c .RI "template void \fBmerge\fP (\fBforward_list\fP &&__list, _Comp __comp)" .br .ti -1c .RI "template void \fBmerge\fP (\fBforward_list\fP &__list, _Comp __comp)" .br .ti -1c .RI "\fBforward_list\fP & \fBoperator=\fP (const \fBforward_list\fP &)=default" .br .ti -1c .RI "\fBforward_list\fP & \fBoperator=\fP (\fBforward_list\fP &&)=default" .br .ti -1c .RI "\fBforward_list\fP & \fBoperator=\fP (\fBstd::initializer_list\fP< _Tp > __il)" .br .ti -1c .RI "void \fBpop_front\fP ()" .br .ti -1c .RI "void \fBremove\fP (const _Tp &__val)" .br .ti -1c .RI "template void \fBremove_if\fP (_Pred __pred)" .br .ti -1c .RI "void \fBresize\fP (size_type __sz)" .br .ti -1c .RI "void \fBresize\fP (size_type __sz, const value_type &__val)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &&__list)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &__list)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &&__list, \fBconst_iterator\fP __i)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &__list, \fBconst_iterator\fP __i)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &&__list, \fBconst_iterator\fP __before, \fBconst_iterator\fP __last)" .br .ti -1c .RI "void \fBsplice_after\fP (\fBconst_iterator\fP __pos, \fBforward_list\fP &__list, \fBconst_iterator\fP __before, \fBconst_iterator\fP __last)" .br .ti -1c .RI "void \fBswap\fP (\fBforward_list\fP &__list) noexcept(noexcept(declval< \fB_Base\fP &>()\&.swap(__list)))" .br .ti -1c .RI "void \fBunique\fP ()" .br .ti -1c .RI "template void \fBunique\fP (_BinPred __binary_pred)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_Safe_iterator_base * \fB_M_const_iterators\fP" .br .RI "The list of constant iterators that reference this container\&. " .ti -1c .RI "_Safe_iterator_base * \fB_M_iterators\fP" .br .RI "The list of mutable iterators that reference this container\&. " .ti -1c .RI "unsigned int \fB_M_version\fP" .br .RI "The container version number\&. This number may never be 0\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fB_M_detach_all\fP ()" .br .ti -1c .RI "void \fB_M_detach_singular\fP ()" .br .ti -1c .RI "__gnu_cxx::__mutex & \fB_M_get_mutex\fP () throw ()" .br .ti -1c .RI "void \fB_M_invalidate_all\fP ()" .br .ti -1c .RI "void \fB_M_invalidate_all\fP () const" .br .ti -1c .RI "void \fB_M_revalidate_singular\fP ()" .br .ti -1c .RI "_Safe_container & \fB_M_safe\fP () noexcept" .br .ti -1c .RI "void \fB_M_swap\fP (_Safe_sequence_base &) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template> .br class std::__debug::forward_list< _Tp, _Alloc >" Class std::forward_list with safety/checking/debug instrumentation\&. .PP Definition at line 184 of file debug/forward_list\&. .SH "Member Function Documentation" .PP .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_all ()\fC [protected]\fP, \fC [inherited]\fP" Detach all iterators, leaving them singular\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_singular ()\fC [protected]\fP, \fC [inherited]\fP" Detach all singular iterators\&. .PP \fBPostcondition:\fP .RS 4 for all iterators i attached to this sequence, i->_M_version == _M_version\&. .RE .PP .SS "__gnu_cxx::__mutex& __gnu_debug::_Safe_sequence_base::_M_get_mutex ()\fC [protected]\fP, \fC [inherited]\fP" For use in _Safe_sequence\&. .PP Referenced by __gnu_debug::_Safe_sequence< map< _Key, _Tp, _Compare, _Allocator > >::_M_transfer_from_if()\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_invalidate_all () const\fC [inline]\fP, \fC [protected]\fP, \fC [inherited]\fP" Invalidates all iterators\&. .PP Definition at line 256 of file safe_base\&.h\&. .PP References __gnu_debug::_Safe_iterator_base::_M_attach(), __gnu_debug::_Safe_iterator_base::_M_attach_single(), __gnu_debug::_Safe_iterator_base::_M_detach(), and __gnu_debug::_Safe_iterator_base::_M_detach_single()\&. .SS "void \fB__gnu_debug::_Safe_sequence\fP< \fBforward_list\fP< _Tp, _Alloc > >::_M_invalidate_if (_Predicate __pred)\fC [inherited]\fP" Invalidates all iterators \fCx\fP that reference this sequence, are not singular, and for which \fC__pred(x)\fP returns \fCtrue\fP\&. \fC__pred\fP will be invoked with the normal iterators nested in the safe ones\&. .PP Definition at line 38 of file safe_sequence\&.tcc\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_revalidate_singular ()\fC [protected]\fP, \fC [inherited]\fP" Revalidates all attached singular iterators\&. This method may be used to validate iterators that were invalidated before (but for some reason, such as an exception, need to become valid again)\&. .SS "void \fB__gnu_debug::_Safe_sequence\fP< \fBforward_list\fP< _Tp, _Alloc > >::_M_transfer_from_if (\fB_Safe_sequence\fP< \fBforward_list\fP< _Tp, _Alloc > > & __from, _Predicate __pred)\fC [inherited]\fP" Transfers all iterators \fCx\fP that reference \fCfrom\fP sequence, are not singular, and for which \fC__pred(x)\fP returns \fCtrue\fP\&. \fC__pred\fP will be invoked with the normal iterators nested in the safe ones\&. .PP Definition at line 69 of file safe_sequence\&.tcc\&. .SH "Member Data Documentation" .PP .SS "_Safe_iterator_base* __gnu_debug::_Safe_sequence_base::_M_const_iterators\fC [inherited]\fP" .PP The list of constant iterators that reference this container\&. .PP Definition at line 197 of file safe_base\&.h\&. .PP Referenced by __gnu_debug::_Safe_sequence< map< _Key, _Tp, _Compare, _Allocator > >::_M_transfer_from_if()\&. .SS "_Safe_iterator_base* __gnu_debug::_Safe_sequence_base::_M_iterators\fC [inherited]\fP" .PP The list of mutable iterators that reference this container\&. .PP Definition at line 194 of file safe_base\&.h\&. .PP Referenced by __gnu_debug::_Safe_sequence< map< _Key, _Tp, _Compare, _Allocator > >::_M_transfer_from_if()\&. .SS "unsigned int __gnu_debug::_Safe_sequence_base::_M_version\fC [mutable]\fP, \fC [inherited]\fP" .PP The container version number\&. This number may never be 0\&. .PP Definition at line 200 of file safe_base\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.