mirror of
https://github.com/boostorg/function.git
synced 2025-07-19 07:32:07 +02:00
Some aesthetic tweaks
[SVN r21905]
This commit is contained in:
@ -248,17 +248,17 @@ f(&x, 5);</programlisting>
|
|||||||
<row>
|
<row>
|
||||||
<entry>
|
<entry>
|
||||||
<programlisting name="function.tutorial.std_bind.cxx98"> <classname>boost::function</classname><int (int)> f;
|
<programlisting name="function.tutorial.std_bind.cxx98"> <classname>boost::function</classname><int (int)> f;
|
||||||
X x;
|
X x;
|
||||||
f = std::bind1st(
|
f = std::bind1st(
|
||||||
std::mem_fun(&X::foo), &x);
|
std::mem_fun(&X::foo), &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><int, int> f;
|
<programlisting name="function.tutorial.std_bind.portable"> <classname alt="functionN">boost::function1</classname><int, int> f;
|
||||||
X x;
|
X x;
|
||||||
f = std::bind1st(
|
f = std::bind1st(
|
||||||
std::mem_fun(&X::foo), &x);
|
std::mem_fun(&X::foo), &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(&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><int (int)> f;
|
<classname>boost::function</classname><int (int)> f;
|
||||||
f = <functionname>boost::ref</functionname>(a_function_object);
|
f = <functionname>boost::ref</functionname>(a_function_object);
|
||||||
|
|
||||||
<classname>boost::function</classname><int (int)> f2(f);</programlisting>
|
<classname>boost::function</classname><int (int)> 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><int, int> f;
|
<classname alt="functionN">boost::function1</classname><int, int> f;
|
||||||
f = <functionname>boost::ref</functionname>(a_function_object);
|
f = <functionname>boost::ref</functionname>(a_function_object);
|
||||||
|
|
||||||
<classname alt="functionN">boost::function1</classname><int, int> f2(f);</programlisting>
|
<classname alt="functionN">boost::function1</classname><int, int> f2(f);</programlisting>
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Reference in New Issue
Block a user