• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Struct template cnvbase</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="../../header/boost/convert/base_hpp.html" title="Header &lt;boost/convert/base.hpp&gt;">
9<link rel="prev" href="../../header/boost/convert/base_hpp.html" title="Header &lt;boost/convert/base.hpp&gt;">
10<link rel="next" href="../../BOOST_CNV_TO_STRING.html" title="Macro BOOST_CNV_TO_STRING">
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="../../header/boost/convert/base_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/convert/base_hpp.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="../../BOOST_CNV_TO_STRING.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.cnv.cnvbase"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Struct template cnvbase</span></h2>
29<p>boost::cnv::cnvbase</p>
30</div>
31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/convert/base_hpp.html" title="Header &lt;boost/convert/base.hpp&gt;">boost/convert/base.hpp</a>&gt;
33
34</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> derived_type<span class="special">&gt;</span>
35<span class="keyword">struct</span> <a class="link" href="cnvbase.html" title="Struct template cnvbase">cnvbase</a> <span class="special">{</span>
36  <span class="comment">// types</span>
37  <span class="keyword">typedef</span> <a class="link" href="cnvbase.html" title="Struct template cnvbase">cnvbase</a>                <a name="boost.cnv.cnvbase.this_type"></a><span class="identifier">this_type</span><span class="special">;</span>
38  <span class="keyword">typedef</span> <span class="keyword">int</span>                    <a name="boost.cnv.cnvbase.int_type"></a><span class="identifier">int_type</span><span class="special">;</span>
39  <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">int</span>           <a name="boost.cnv.cnvbase.uint_type"></a><span class="identifier">uint_type</span><span class="special">;</span>
40  <span class="keyword">typedef</span> <span class="keyword">long</span> <span class="keyword">int</span>               <a name="boost.cnv.cnvbase.lint_type"></a><span class="identifier">lint_type</span><span class="special">;</span>
41  <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">long</span> <span class="keyword">int</span>      <a name="boost.cnv.cnvbase.ulint_type"></a><span class="identifier">ulint_type</span><span class="special">;</span>
42  <span class="keyword">typedef</span> <span class="keyword">short</span> <span class="keyword">int</span>              <a name="boost.cnv.cnvbase.sint_type"></a><span class="identifier">sint_type</span><span class="special">;</span>
43  <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <span class="keyword">int</span>     <a name="boost.cnv.cnvbase.usint_type"></a><span class="identifier">usint_type</span><span class="special">;</span>
44  <span class="keyword">typedef</span> <span class="keyword">long</span> <span class="keyword">long</span> <span class="keyword">int</span>          <a name="boost.cnv.cnvbase.llint_type"></a><span class="identifier">llint_type</span><span class="special">;</span>
45  <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">long</span> <span class="keyword">long</span> <span class="keyword">int</span> <a name="boost.cnv.cnvbase.ullint_type"></a><span class="identifier">ullint_type</span><span class="special">;</span>
46  <span class="keyword">typedef</span> <span class="keyword">float</span>                  <a name="boost.cnv.cnvbase.flt_type"></a><span class="identifier">flt_type</span><span class="special">;</span>
47  <span class="keyword">typedef</span> <span class="keyword">double</span>                 <a name="boost.cnv.cnvbase.dbl_type"></a><span class="identifier">dbl_type</span><span class="special">;</span>
48  <span class="keyword">typedef</span> <span class="keyword">long</span> <span class="keyword">double</span>            <a name="boost.cnv.cnvbase.ldbl_type"></a><span class="identifier">ldbl_type</span><span class="special">;</span>
49
50  <span class="comment">// <a class="link" href="cnvbase.html#boost.cnv.cnvbaseconstruct-copy-destruct">construct/copy/destruct</a></span>
51  <a class="link" href="cnvbase.html#idm45934308017792-bb"><span class="identifier">cnvbase</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
52
53  <span class="comment">// <a class="link" href="cnvbase.html#idm45934308098560-bb">public member functions</a></span>
54  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> type_in<span class="special">,</span> <span class="keyword">typename</span> type_out<span class="special">&gt;</span>
55    <span class="keyword">void</span> <a class="link" href="cnvbase.html#idm45934308098000-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">type_in</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">type_out</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
56   <a class="link" href="cnvbase.html#idm45934308094080-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">int_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
57   <a class="link" href="cnvbase.html#idm45934308091728-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">uint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
58   <a class="link" href="cnvbase.html#idm45934308089376-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">lint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
59   <a class="link" href="cnvbase.html#idm45934308087024-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">llint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
60   <a class="link" href="cnvbase.html#idm45934308084672-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">ulint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
61   <a class="link" href="cnvbase.html#idm45934308082320-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">ullint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
62   <a class="link" href="cnvbase.html#idm45934308079968-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">sint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
63   <a class="link" href="cnvbase.html#idm45934308077616-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">usint_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
64   <a class="link" href="cnvbase.html#idm45934308075264-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">flt_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
65   <a class="link" href="cnvbase.html#idm45934308072912-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">dbl_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
66   <a class="link" href="cnvbase.html#idm45934308070560-bb"><span class="identifier">BOOST_CNV_TO_STRING</span></a><span class="special">(</span><span class="identifier">ldbl_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
67   <a class="link" href="cnvbase.html#idm45934308068208-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">int_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
68   <a class="link" href="cnvbase.html#idm45934308065872-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">uint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
69   <a class="link" href="cnvbase.html#idm45934308063536-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">lint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
70   <a class="link" href="cnvbase.html#idm45934308061200-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">llint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
71   <a class="link" href="cnvbase.html#idm45934308058848-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ulint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
72   <a class="link" href="cnvbase.html#idm45934308056496-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ullint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
73   <a class="link" href="cnvbase.html#idm45934308054144-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">sint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
74   <a class="link" href="cnvbase.html#idm45934308051808-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">usint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
75   <a class="link" href="cnvbase.html#idm45934308049456-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">flt_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
76   <a class="link" href="cnvbase.html#idm45934308047120-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">dbl_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
77   <a class="link" href="cnvbase.html#idm45934308044784-bb"><span class="identifier">BOOST_CNV_STRING_TO</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ldbl_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
78   <a class="link" href="cnvbase.html#idm45934308042448-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">base</span><span class="special">,</span> <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">base</span><span class="special">)</span><span class="special">;</span>
79   <a class="link" href="cnvbase.html#idm45934308040384-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">adjust</span><span class="special">,</span> <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">adjust</span><span class="special">)</span><span class="special">;</span>
80   <a class="link" href="cnvbase.html#idm45934308038320-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">precision</span><span class="special">,</span> <span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
81   <a class="link" href="cnvbase.html#idm45934308036256-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">uppercase</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
82   <a class="link" href="cnvbase.html#idm45934308034192-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">skipws</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
83   <a class="link" href="cnvbase.html#idm45934308032128-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">width</span><span class="special">,</span> <span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
84   <a class="link" href="cnvbase.html#idm45934308030064-bb"><span class="identifier">BOOST_CNV_PARAM</span></a><span class="special">(</span><span class="identifier">fill</span><span class="special">,</span> <span class="keyword">char</span><span class="special">)</span><span class="special">;</span>
85
86  <span class="comment">// <a class="link" href="cnvbase.html#idm45934308027840-bb">protected member functions</a></span>
87  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> string_type<span class="special">,</span> <span class="keyword">typename</span> out_type<span class="special">&gt;</span>
88    <span class="keyword">void</span> <a class="link" href="cnvbase.html#idm45934308027264-bb"><span class="identifier">str_to_</span></a><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">out_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
89  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> in_type<span class="special">,</span> <span class="keyword">typename</span> string_type<span class="special">&gt;</span>
90    <span class="keyword">void</span> <a class="link" href="cnvbase.html#idm45934308023648-bb"><span class="identifier">to_str_</span></a><span class="special">(</span><span class="identifier">in_type</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
91  <span class="identifier">derived_type</span> <span class="keyword">const</span>  <span class="special">&amp;</span> <a class="link" href="cnvbase.html#idm45934308019920-bb"><span class="identifier">dncast</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
92  <span class="identifier">derived_type</span> <span class="special">&amp;</span> <a class="link" href="cnvbase.html#idm45934308018800-bb"><span class="identifier">dncast</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
93<span class="special">}</span><span class="special">;</span></pre></div>
94<div class="refsect1">
95<a name="idm45766273604976"></a><h2>Description</h2>
96<div class="refsect2">
97<a name="idm45766273604560"></a><h3>
98<a name="boost.cnv.cnvbaseconstruct-copy-destruct"></a><code class="computeroutput">cnvbase</code>
99        public
100       construct/copy/destruct</h3>
101<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idm45934308017792-bb"></a><span class="identifier">cnvbase</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
102</div>
103<div class="refsect2">
104<a name="idm45766273598688"></a><h3>
105<a name="idm45934308098560-bb"></a><code class="computeroutput">cnvbase</code> public member functions</h3>
106<div class="orderedlist"><ol class="orderedlist" type="1">
107<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> type_in<span class="special">,</span> <span class="keyword">typename</span> type_out<span class="special">&gt;</span>
108  <span class="keyword">void</span> <a name="idm45934308098000-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">type_in</span> <span class="keyword">const</span> <span class="special">&amp;</span> in<span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">type_out</span> <span class="special">&gt;</span> <span class="special">&amp;</span> out<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
109<li class="listitem"><pre class="literallayout"> <a name="idm45934308094080-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">int_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
110<li class="listitem"><pre class="literallayout"> <a name="idm45934308091728-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">uint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
111<li class="listitem"><pre class="literallayout"> <a name="idm45934308089376-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">lint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
112<li class="listitem"><pre class="literallayout"> <a name="idm45934308087024-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">llint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
113<li class="listitem"><pre class="literallayout"> <a name="idm45934308084672-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">ulint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
114<li class="listitem"><pre class="literallayout"> <a name="idm45934308082320-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">ullint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
115<li class="listitem"><pre class="literallayout"> <a name="idm45934308079968-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">sint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
116<li class="listitem"><pre class="literallayout"> <a name="idm45934308077616-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">usint_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
117<li class="listitem"><pre class="literallayout"> <a name="idm45934308075264-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">flt_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
118<li class="listitem"><pre class="literallayout"> <a name="idm45934308072912-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">dbl_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
119<li class="listitem"><pre class="literallayout"> <a name="idm45934308070560-bb"></a><span class="identifier">BOOST_CNV_TO_STRING</span><span class="special">(</span><span class="identifier">ldbl_type</span> v<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
120<li class="listitem"><pre class="literallayout"> <a name="idm45934308068208-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">int_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
121<li class="listitem"><pre class="literallayout"> <a name="idm45934308065872-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">uint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
122<li class="listitem"><pre class="literallayout"> <a name="idm45934308063536-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">lint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
123<li class="listitem"><pre class="literallayout"> <a name="idm45934308061200-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">llint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
124<li class="listitem"><pre class="literallayout"> <a name="idm45934308058848-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ulint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
125<li class="listitem"><pre class="literallayout"> <a name="idm45934308056496-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ullint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
126<li class="listitem"><pre class="literallayout"> <a name="idm45934308054144-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">sint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
127<li class="listitem"><pre class="literallayout"> <a name="idm45934308051808-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">usint_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
128<li class="listitem"><pre class="literallayout"> <a name="idm45934308049456-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">flt_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
129<li class="listitem"><pre class="literallayout"> <a name="idm45934308047120-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">dbl_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
130<li class="listitem"><pre class="literallayout"> <a name="idm45934308044784-bb"></a><span class="identifier">BOOST_CNV_STRING_TO</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">ldbl_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
131<li class="listitem"><pre class="literallayout"> <a name="idm45934308042448-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">base</span><span class="special">,</span> <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">base</span><span class="special">)</span><span class="special">;</span></pre></li>
132<li class="listitem"><pre class="literallayout"> <a name="idm45934308040384-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">adjust</span><span class="special">,</span> <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">adjust</span><span class="special">)</span><span class="special">;</span></pre></li>
133<li class="listitem"><pre class="literallayout"> <a name="idm45934308038320-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">precision</span><span class="special">,</span> <span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre></li>
134<li class="listitem"><pre class="literallayout"> <a name="idm45934308036256-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">uppercase</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">)</span><span class="special">;</span></pre></li>
135<li class="listitem"><pre class="literallayout"> <a name="idm45934308034192-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">skipws</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">)</span><span class="special">;</span></pre></li>
136<li class="listitem"><pre class="literallayout"> <a name="idm45934308032128-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">width</span><span class="special">,</span> <span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre></li>
137<li class="listitem"><pre class="literallayout"> <a name="idm45934308030064-bb"></a><span class="identifier">BOOST_CNV_PARAM</span><span class="special">(</span><span class="identifier">fill</span><span class="special">,</span> <span class="keyword">char</span><span class="special">)</span><span class="special">;</span></pre></li>
138</ol></div>
139</div>
140<div class="refsect2">
141<a name="idm45766273324432"></a><h3>
142<a name="idm45934308027840-bb"></a><code class="computeroutput">cnvbase</code> protected member functions</h3>
143<div class="orderedlist"><ol class="orderedlist" type="1">
144<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> string_type<span class="special">,</span> <span class="keyword">typename</span> out_type<span class="special">&gt;</span>
145  <span class="keyword">void</span> <a name="idm45934308027264-bb"></a><span class="identifier">str_to_</span><span class="special">(</span><span class="identifier">string_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">out_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> result_out<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
146<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> in_type<span class="special">,</span> <span class="keyword">typename</span> string_type<span class="special">&gt;</span>
147  <span class="keyword">void</span> <a name="idm45934308023648-bb"></a><span class="identifier">to_str_</span><span class="special">(</span><span class="identifier">in_type</span> value_in<span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> result_out<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
148<li class="listitem"><pre class="literallayout"><span class="identifier">derived_type</span> <span class="keyword">const</span>  <span class="special">&amp;</span> <a name="idm45934308019920-bb"></a><span class="identifier">dncast</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
149<li class="listitem"><pre class="literallayout"><span class="identifier">derived_type</span> <span class="special">&amp;</span> <a name="idm45934308018800-bb"></a><span class="identifier">dncast</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
150</ol></div>
151</div>
152</div>
153</div>
154<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
155<td align="left"></td>
156<td align="right"><div class="copyright-footer">Copyright © 2009-2016 Vladimir Batov<p>
157        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>.
158      </p>
159</div></td>
160</tr></table>
161<hr>
162<div class="spirit-nav">
163<a accesskey="p" href="../../header/boost/convert/base_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/convert/base_hpp.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="../../BOOST_CNV_TO_STRING.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
164</div>
165</body>
166</html>
167