1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 Copyright 2012 Eric Niebler
5 Distributed under the Boost
6 Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 <header name=
"boost/proto/transform/integral_c.hpp">
10 <para>Contains definition of the integral_c transform and friends.
</para>
11 <namespace name=
"boost">
12 <namespace name=
"proto">
14 <struct name=
"integral_c">
16 <template-type-parameter name=
"T"/>
17 <template-nontype-parameter name=
"I">
19 </template-nontype-parameter>
21 <inherit><classname>proto::transform
</classname>< integral_c
< T, I
> ></inherit>
22 <purpose>A
<conceptname>PrimitiveTransform
</conceptname> that returns the specified integral constant.
</purpose>
25 <template-type-parameter name=
"Expr"/>
26 <template-type-parameter name=
"State"/>
27 <template-type-parameter name=
"Data"/>
29 <inherit><classname>proto::transform_impl
</classname>< Expr, State, Data
></inherit>
30 <typedef name=
"result_type">
33 <method-group name=
"public member functions">
34 <method name=
"operator()" cv=
"const">
37 <paramtype>typename impl::expr_param
</paramtype>
40 <paramtype>typename impl::state_param
</paramtype>
43 <paramtype>typename impl::data_param
</paramtype>
47 <computeroutput>I
</computeroutput>
51 <simpara>Will not throw.
</simpara>
60 <template-nontype-parameter name=
"I">
62 </template-nontype-parameter>
64 <inherit><classname>proto::integral_c
</classname>< char, I
></inherit>
65 <purpose>A
<conceptname>PrimitiveTransform
</conceptname> that returns the specified char.
</purpose>
70 <template-nontype-parameter name=
"I">
72 </template-nontype-parameter>
74 <inherit><classname>proto::integral_c
</classname>< int, I
></inherit>
75 <purpose>A
<conceptname>PrimitiveTransform
</conceptname> that returns the specified int.
</purpose>
80 <template-nontype-parameter name=
"I">
82 </template-nontype-parameter>
84 <inherit><classname>proto::integral_c
</classname>< long, I
></inherit>
85 <purpose>A
<conceptname>PrimitiveTransform
</conceptname> that returns the specified long.
</purpose>
88 <struct name=
"size_t">
90 <template-nontype-parameter name=
"I">
91 <type>std::size_t
</type>
92 </template-nontype-parameter>
94 <inherit><classname>proto::integral_c
</classname>< std::size_t, I
></inherit>
95 <purpose>A
<conceptname>PrimitiveTransform
</conceptname> that returns the specified std::size_t.
</purpose>