1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Function template make_function</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.Log v2"> 8<link rel="up" href="../../../attributes.html#header.boost.log.attributes.function_hpp" title="Header <boost/log/attributes/function.hpp>"> 9<link rel="prev" href="function/impl_template.html" title="Class template impl_template"> 10<link rel="next" href="mutable_constant.html" title="Class template mutable_constant"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td></tr></table> 14<hr> 15<div class="spirit-nav"> 16<a accesskey="p" href="function/impl_template.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../attributes.html#header.boost.log.attributes.function_hpp"><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="mutable_constant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.attributes.make_function"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Function template make_function</span></h2> 22<p>boost::log::attributes::make_function</p> 23</div> 24<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 25<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../attributes.html#header.boost.log.attributes.function_hpp" title="Header <boost/log/attributes/function.hpp>">boost/log/attributes/function.hpp</a>> 26 27</span> 28<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 29 <a class="link" href="function.html" title="Class template function">function</a><span class="special"><</span> <span class="keyword">typename</span> <span class="identifier">remove_cv</span><span class="special"><</span> <span class="keyword">typename</span> <span class="identifier">remove_reference</span><span class="special"><</span> <span class="keyword">typename</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span><span class="special"><</span> <span class="identifier">T</span><span class="special">(</span><span class="special">)</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <span class="special">></span> 30 <span class="identifier">make_function</span><span class="special">(</span><span class="identifier">T</span> <span class="keyword">const</span> <span class="special">&</span> fun<span class="special">)</span><span class="special">;</span></pre></div> 31<div class="refsect1"> 32<a name="idm44984882638944"></a><h2>Description</h2> 33<p>The function constructs <code class="computeroutput">function</code> attribute instance with the provided function object.</p> 34<p> 35 36</p> 37<div class="variablelist"><table border="0" class="variablelist compact"> 38<colgroup> 39<col align="left" valign="top"> 40<col> 41</colgroup> 42<tbody> 43<tr> 44<td><p><span class="term">Parameters:</span></p></td> 45<td><div class="variablelist"><table border="0" class="variablelist compact"> 46<colgroup> 47<col align="left" valign="top"> 48<col> 49</colgroup> 50<tbody><tr> 51<td><p><span class="term"><code class="computeroutput">fun</code></span></p></td> 52<td><p>Nullary functional object that returns an actual stored value for an attribute value. </p></td> 53</tr></tbody> 54</table></div></td> 55</tr> 56<tr> 57<td><p><span class="term">Returns:</span></p></td> 58<td><p>Pointer to the attribute instance </p></td> 59</tr> 60</tbody> 61</table></div> 62</div> 63</div> 64<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 65<td align="left"></td> 66<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 67 Distributed under the Boost Software License, Version 1.0. (See accompanying 68 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>). 69 </p> 70</div></td> 71</tr></table> 72<hr> 73<div class="spirit-nav"> 74<a accesskey="p" href="function/impl_template.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../attributes.html#header.boost.log.attributes.function_hpp"><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="mutable_constant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 75</div> 76</body> 77</html> 78