• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Supporting Tools</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. Boost.Convert 2.0">
8<link rel="up" href="../index.html" title="Chapter 1. Boost.Convert 2.0">
9<link rel="prev" href="design_notes/user_interface_signature.html" title="User Interface Signature">
10<link rel="next" href="supporting_tools/boost__cnv__is_range.html" title="boost::cnv::is_range">
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="design_notes/user_interface_signature.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="supporting_tools/boost__cnv__is_range.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="boost_convert.supporting_tools"></a><a class="link" href="supporting_tools.html" title="Supporting Tools">Supporting Tools</a>
28</h2></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="supporting_tools.html#boost_convert.supporting_tools.boost__cnv__range">boost::cnv::range</a></span></dt>
31<dt><span class="section"><a href="supporting_tools/boost__cnv__is_range.html">boost::cnv::is_range</a></span></dt>
32<dt><span class="section"><a href="supporting_tools/boost_declare_has_member.html">BOOST_DECLARE_HAS_MEMBER</a></span></dt>
33<dt><span class="section"><a href="supporting_tools/boost_declare_is_callable.html">BOOST_DECLARE_IS_CALLABLE</a></span></dt>
34<dt><span class="section"><a href="supporting_tools/boost__cnv__is_cnv.html">boost::cnv::is_cnv</a></span></dt>
35</dl></div>
36<p>
37      This section describes a few supporting tools written as part of <span class="emphasis"><em>Boost.Convert</em></span>
38      but which might be useful in their own rights.
39    </p>
40<div class="section">
41<div class="titlepage"><div><div><h3 class="title">
42<a name="boost_convert.supporting_tools.boost__cnv__range"></a><a class="link" href="supporting_tools.html#boost_convert.supporting_tools.boost__cnv__range" title="boost::cnv::range">boost::cnv::range</a>
43</h3></div></div></div>
44<p>
45        <span class="emphasis"><em>boost::cnv::range</em></span> is a consolidation of the [begin,
46        end)-based ranges (such as <span class="emphasis"><em>std::string</em></span>) and the sentry-based
47        ranges (such as null-terminated C-style strings). It allows universal traversal
48        of both types of ranges with
49      </p>
50<pre class="programlisting"><span class="keyword">for</span> <span class="special">(</span><span class="keyword">auto</span> <span class="identifier">s</span> <span class="special">=</span> <span class="identifier">range</span><span class="special">.</span><span class="identifier">begin</span><span class="special">();</span> <span class="identifier">s</span> <span class="special">!=</span> <span class="identifier">range</span><span class="special">.</span><span class="identifier">sentry</span><span class="special">();</span> <span class="special">++</span><span class="identifier">s</span><span class="special">)</span>
51</pre>
52<p>
53        without the penalty or the need for an extra traversal of the sentry-based
54        ranges in order to find the end.
55      </p>
56<p>
57        TODO
58      </p>
59</div>
60</div>
61<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
62<td align="left"></td>
63<td align="right"><div class="copyright-footer">Copyright © 2009-2016 Vladimir Batov<p>
64        Distributed under the Boost Software License, Version 1.0. See copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>.
65      </p>
66</div></td>
67</tr></table>
68<hr>
69<div class="spirit-nav">
70<a accesskey="p" href="design_notes/user_interface_signature.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="supporting_tools/boost__cnv__is_range.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
71</div>
72</body>
73</html>
74