Article ID: 156592 - Last Review: January 18, 2006 - Revision: 6.1 How to use the "deque::rbegin" STL function, the "deque::rend" STL function, and the "deque::push_back" STL function in Visual C++This article was previously published under Q156592 On This PageSUMMARY The following sample code illustrates how to use the deque::rbegin STL function, the deque::rend STL function, and the deque::push_back STL function in Visual C++. MORE INFORMATIONRequired HeaderPrototypeDescriptionThe rbegin member function returns a reverse iterator that points just beyond the end of the controlled sequence. Therefore, it designates the beginning of the reverse sequence.The rend member function returns a reverse iterator that points at the first element of the sequence, or just beyond the end of an empty sequence. Therefore, it designates the end of the reverse sequence. Sample CodeNOTE: In the first line of the sample code section, /GX is equivalent to /EHsc in Visual C++ .NET and in Visual C++ 2005 and is set by default.5 4 3 2 1 REFERENCES For more information about deque::push_back, visit the
following Microsoft Developer Network (MSDN) Web site: http://msdn.microsoft.com/en-us/library/tsbc775e.aspx
(http://msdn.microsoft.com/en-us/library/tsbc775e.aspx)
For
more information about deque::rbegin and deque::rend, visit the following
MSDN Web site:http://msdn.microsoft.com/en-us/library/7t0ae59c.aspx
(http://msdn.microsoft.com/en-us/library/7t0ae59c.aspx)
APPLIES TO
| Article Translations
|

Back to the top
