Some aesthetic tweaks

[SVN r21905]
This commit is contained in:
Douglas Gregor
2004-01-25 01:17:35 +00:00
parent b7650282df
commit fdb37c35ff

View File

@ -248,17 +248,17 @@ f(&amp;x, 5);</programlisting>
<row> <row>
<entry> <entry>
<programlisting name="function.tutorial.std_bind.cxx98"> <classname>boost::function</classname>&lt;int (int)&gt; f; <programlisting name="function.tutorial.std_bind.cxx98"> <classname>boost::function</classname>&lt;int (int)&gt; f;
X x; X x;
f = std::bind1st( f = std::bind1st(
std::mem_fun(&amp;X::foo), &amp;x); std::mem_fun(&amp;X::foo), &amp;x);
f(5); // Call x.foo(5)</programlisting> f(5); // Call x.foo(5)</programlisting>
</entry> </entry>
<entry> <entry>
<programlisting name="function.tutorial.std_bind.portable"> <classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f; <programlisting name="function.tutorial.std_bind.portable"> <classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f;
X x; X x;
f = std::bind1st( f = std::bind1st(
std::mem_fun(&amp;X::foo), &amp;x); std::mem_fun(&amp;X::foo), &amp;x);
f(5); // Call x.foo(5)</programlisting> f(5); // Call x.foo(5)</programlisting>
</entry> </entry>
</row> </row>
</tbody> </tbody>
@ -293,18 +293,18 @@ f(&amp;x, 5);</programlisting>
<tbody> <tbody>
<row> <row>
<entry> <entry>
<programlisting name="function.tutorial.ref.cxx98"> stateful_type a_function_object; <programlisting name="function.tutorial.ref.cxx98">stateful_type a_function_object;
<classname>boost::function</classname>&lt;int (int)&gt; f; <classname>boost::function</classname>&lt;int (int)&gt; f;
f = <functionname>boost::ref</functionname>(a_function_object); f = <functionname>boost::ref</functionname>(a_function_object);
<classname>boost::function</classname>&lt;int (int)&gt; f2(f);</programlisting> <classname>boost::function</classname>&lt;int (int)&gt; f2(f);</programlisting>
</entry> </entry>
<entry> <entry>
<programlisting name="function.tutorial.ref.portable"> stateful_type a_function_object; <programlisting name="function.tutorial.ref.portable">stateful_type a_function_object;
<classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f; <classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f;
f = <functionname>boost::ref</functionname>(a_function_object); f = <functionname>boost::ref</functionname>(a_function_object);
<classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f2(f);</programlisting> <classname alt="functionN">boost::function1</classname>&lt;int, int&gt; f2(f);</programlisting>
</entry> </entry>
</row> </row>
</tbody> </tbody>