]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
4 | <head> | |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 | <meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" /> | |
7 | <title>The MPL Reference Manual: Views</title> | |
8 | <link rel="stylesheet" href="../style.css" type="text/css" /> | |
9 | </head> | |
10 | <body class="docframe refmanual"> | |
11 | <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./string.html" class="navigation-link">Prev</a> <a href="./empty-sequence.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./classes.html" class="navigation-link">Back</a> <a href="./intrinsic-metafunctions.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> | |
12 | <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./sequences.html" class="navigation-link">Sequences</a> / <a href="./views.html" class="navigation-link">Views</a></td> | |
13 | </tr></table><div class="header-separator"></div> | |
14 | <div class="section" id="views"> | |
15 | <h1><a class="toc-backref" href="./sequences.html#id1416">Views</a></h1> | |
16 | <p id="label-sequences-views">A <em>view</em> is a sequence adaptor delivering an altered presentation of | |
17 | one or more underlying sequences. Views are lazy, meaning that their | |
18 | elements are only computed on demand. Similarly to the short-circuit | |
19 | <a class="reference internal" href="./logical-operations.html">logical operations</a> and <a class="reference internal" href="./eval-if.html">eval_if</a>, views make it possible to avoid | |
20 | premature errors and inefficiencies from computations whose results | |
21 | will never be used. When approached with views in mind, many | |
22 | algorithmic problems can be solved in a simpler, more conceptually | |
23 | precise, more expressive way.</p> | |
24 | <!-- Sequences/Views//empty_sequence --> | |
25 | <ul class="toc simple" id="outline"> | |
26 | <li><a class="reference internal" href="./empty-sequence.html" id="id1417">empty_sequence</a></li> | |
27 | <li><a class="reference internal" href="./filter-view.html" id="id1418">filter_view</a></li> | |
28 | <li><a class="reference internal" href="./iterator-range.html" id="id1419">iterator_range</a></li> | |
29 | <li><a class="reference internal" href="./joint-view.html" id="id1420">joint_view</a></li> | |
30 | <li><a class="reference internal" href="./single-view.html" id="id1421">single_view</a></li> | |
31 | <li><a class="reference internal" href="./transform-view.html" id="id1422">transform_view</a></li> | |
32 | <li><a class="reference internal" href="./zip-view.html" id="id1423">zip_view</a></li> | |
33 | </ul> | |
34 | </div> | |
35 | ||
36 | <div class="footer-separator"></div> | |
37 | <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./string.html" class="navigation-link">Prev</a> <a href="./empty-sequence.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./classes.html" class="navigation-link">Back</a> <a href="./intrinsic-metafunctions.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> | |
38 | <td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div> | |
39 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
40 | file LICENSE_1_0.txt or copy at <a class="reference external" href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</div></td></tr></table></body> | |
41 | </html> |