• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Tutorial: reverse_iterator</title>
6<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../stl_interfaces.html" title="Chapter 38. Boost.STLInterfaces">
10<link rel="prev" href="tutorial___sequence_container_interface_.html" title="Tutorial: sequence_container_interface">
11<link rel="next" href="examples.html" title="Examples">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
16<td align="center"><a href="../../../index.html">Home</a></td>
17<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<a accesskey="p" href="tutorial___sequence_container_interface_.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stl_interfaces.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="section">
27<div class="titlepage"><div><div><h2 class="title" style="clear: both">
28<a name="boost_stlinterfaces.tutorial___reverse_iterator_"></a><a class="link" href="tutorial___reverse_iterator_.html" title="Tutorial: reverse_iterator">Tutorial:
29    <code class="computeroutput"><span class="identifier">reverse_iterator</span></code></a>
30</h2></div></div></div>
31<p>
32      There is a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">reverse_iterator</span></code> template that has been around
33      since C++98. In C++20 it is compatible with proxy iterators, and is <code class="computeroutput"><span class="keyword">constexpr</span></code>- and <code class="computeroutput"><span class="keyword">noexcept</span></code>-friendly.
34      If you are using C++20 or later, just use <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">reverse_iterator</span></code>.
35      For code built against earlier versions of C++, you can use <code class="computeroutput"><a class="link" href="../boost/stl_interfaces/v1/reverse_iterator.html" title="Struct template reverse_iterator">reverse_iterator</a></code>.
36    </p>
37<p>
38      There's nothing much to document about it; it works just like <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">reverse_iterator</span></code>.
39    </p>
40</div>
41<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
42<td align="left"></td>
43<td align="right"><div class="copyright-footer">Copyright © 2019 T. Zachary Laine<p>
44        Distributed under the Boost Software License, Version 1.0. (See accompanying
45        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
46      </p>
47</div></td>
48</tr></table>
49<hr>
50<div class="spirit-nav">
51<a accesskey="p" href="tutorial___sequence_container_interface_.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stl_interfaces.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
52</div>
53</body>
54</html>
55