6f63e9d0c6
[SVN r64705]
42 lines
4.4 KiB
HTML
42 lines
4.4 KiB
HTML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
|
|
<title>The MPL Reference Manual: Views</title>
|
|
<link rel="stylesheet" href="../style.css" type="text/css" />
|
|
</head>
|
|
<body class="docframe refmanual">
|
|
<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>
|
|
<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>
|
|
</tr></table><div class="header-separator"></div>
|
|
<div class="section" id="views">
|
|
<h1><a class="toc-backref" href="./sequences.html#id1416">Views</a></h1>
|
|
<p id="label-sequences-views">A <em>view</em> is a sequence adaptor delivering an altered presentation of
|
|
one or more underlying sequences. Views are lazy, meaning that their
|
|
elements are only computed on demand. Similarly to the short-circuit
|
|
<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
|
|
premature errors and inefficiencies from computations whose results
|
|
will never be used. When approached with views in mind, many
|
|
algorithmic problems can be solved in a simpler, more conceptually
|
|
precise, more expressive way.</p>
|
|
<!-- Sequences/Views//empty_sequence -->
|
|
<ul class="toc simple" id="outline">
|
|
<li><a class="reference internal" href="./empty-sequence.html" id="id1417">empty_sequence</a></li>
|
|
<li><a class="reference internal" href="./filter-view.html" id="id1418">filter_view</a></li>
|
|
<li><a class="reference internal" href="./iterator-range.html" id="id1419">iterator_range</a></li>
|
|
<li><a class="reference internal" href="./joint-view.html" id="id1420">joint_view</a></li>
|
|
<li><a class="reference internal" href="./single-view.html" id="id1421">single_view</a></li>
|
|
<li><a class="reference internal" href="./transform-view.html" id="id1422">transform_view</a></li>
|
|
<li><a class="reference internal" href="./zip-view.html" id="id1423">zip_view</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="footer-separator"></div>
|
|
<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>
|
|
<td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div>
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
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>
|
|
</html>
|