1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>reversible_view</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Geometry"> 8<link rel="up" href="../views.html" title="Views"> 9<link rel="prev" href="closeable_view.html" title="closeable_view"> 10<link rel="next" href="identity_view.html" title="identity_view"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="closeable_view.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../views.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="identity_view.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="geometry.reference.views.reversible_view"></a><a class="link" href="reversible_view.html" title="reversible_view">reversible_view</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635666465984"></a> 31View on a range, reversing direction if necessary. 32 </p> 33<h6> 34<a name="geometry.reference.views.reversible_view.h0"></a> 35 <span class="phrase"><a name="geometry.reference.views.reversible_view.synopsis"></a></span><a class="link" href="reversible_view.html#geometry.reference.views.reversible_view.synopsis">Synopsis</a> 36 </h6> 37<p> 38</p> 39<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Range</span><span class="special">,</span> <span class="identifier">iterate_direction</span> <span class="identifier">Direction</span><span class="special">></span> 40<span class="keyword">struct</span> <span class="identifier">reversible_view</span> 41<span class="special">{</span> 42 <span class="comment">// ...</span> 43<span class="special">};</span> 44</pre> 45<p> 46 </p> 47<h6> 48<a name="geometry.reference.views.reversible_view.h1"></a> 49 <span class="phrase"><a name="geometry.reference.views.reversible_view.template_parameter_s_"></a></span><a class="link" href="reversible_view.html#geometry.reference.views.reversible_view.template_parameter_s_">Template 50 parameter(s)</a> 51 </h6> 52<div class="informaltable"><table class="table"> 53<colgroup> 54<col> 55<col> 56</colgroup> 57<thead><tr> 58<th> 59 <p> 60 Parameter 61 </p> 62 </th> 63<th> 64 <p> 65 Description 66 </p> 67 </th> 68</tr></thead> 69<tbody> 70<tr> 71<td> 72 <p> 73 typename Range 74 </p> 75 </td> 76<td> 77 <p> 78 original range 79 </p> 80 </td> 81</tr> 82<tr> 83<td> 84 <p> 85 iterate_direction Direction 86 </p> 87 </td> 88<td> 89 <p> 90 direction of iteration 91 </p> 92 </td> 93</tr> 94</tbody> 95</table></div> 96<h6> 97<a name="geometry.reference.views.reversible_view.h2"></a> 98 <span class="phrase"><a name="geometry.reference.views.reversible_view.header"></a></span><a class="link" href="reversible_view.html#geometry.reference.views.reversible_view.header">Header</a> 99 </h6> 100<p> 101 Either 102 </p> 103<p> 104 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 105 </p> 106<p> 107 Or 108 </p> 109<p> 110 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">views</span><span class="special">/</span><span class="identifier">reversible_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 111 </p> 112</div> 113<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 114<td align="left"></td> 115<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 116 Wulkiewicz, Oracle and/or its affiliates<p> 117 Distributed under the Boost Software License, Version 1.0. (See accompanying 118 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>) 119 </p> 120</div></td> 121</tr></table> 122<hr> 123<div class="spirit-nav"> 124<a accesskey="p" href="closeable_view.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../views.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="identity_view.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 125</div> 126</body> 127</html> 128