1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Class template impl_template</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="../function.html#idm44984882756544" title="Description"> 9<link rel="prev" href="impl.html" title="Class impl"> 10<link rel="next" href="../make_function.html" title="Function template make_function"> 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="impl.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../function.html#idm44984882756544"><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="../make_function.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.attributes.function.impl_template"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Class template impl_template</span></h2> 22<p>boost::log::attributes::function::impl_template — Factory implementation. </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 29<span class="comment">// Factory implementation.</span> 30<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 31<span class="keyword">class</span> <a class="link" href="impl_template.html" title="Class template impl_template">impl_template</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">function</span><span class="special"><</span> <span class="identifier">R</span> <span class="special">></span><span class="special">::</span><span class="identifier">impl</span> <span class="special">{</span> 32<span class="keyword">public</span><span class="special">:</span> 33 <span class="comment">// <a class="link" href="impl_template.html#boost.log.attributes.function.impl_templateconstruct-copy-destruct">construct/copy/destruct</a></span> 34 <span class="keyword">explicit</span> <a class="link" href="impl_template.html#idm46079579314992-bb"><span class="identifier">impl_template</span></a><span class="special">(</span><span class="identifier">T</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 35 36 <span class="comment">// <a class="link" href="impl_template.html#idm46079579318048-bb">public member functions</a></span> 37 <span class="keyword">virtual</span> <a class="link" href="../../attribute_value.html" title="Class attribute_value">attribute_value</a> <a class="link" href="impl_template.html#idm46079579317488-bb"><span class="identifier">get_value</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 38<span class="special">}</span><span class="special">;</span></pre></div> 39<div class="refsect1"> 40<a name="idm44984882684304"></a><h2>Description</h2> 41<div class="refsect2"> 42<a name="idm44984882683888"></a><h3> 43<a name="boost.log.attributes.function.impl_templateconstruct-copy-destruct"></a><code class="computeroutput">impl_template</code> 44 public 45 construct/copy/destruct</h3> 46<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> 47<pre class="literallayout"><span class="keyword">explicit</span> <a name="idm46079579314992-bb"></a><span class="identifier">impl_template</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> 48<p>Constructor with the stored delegate initialization </p> 49</li></ol></div> 50</div> 51<div class="refsect2"> 52<a name="idm44984882674912"></a><h3> 53<a name="idm46079579318048-bb"></a><code class="computeroutput">impl_template</code> public member functions</h3> 54<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> 55<pre class="literallayout"><span class="keyword">virtual</span> <a class="link" href="../../attribute_value.html" title="Class attribute_value">attribute_value</a> <a name="idm46079579317488-bb"></a><span class="identifier">get_value</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 56<p> 57</p> 58<div class="variablelist"><table border="0" class="variablelist compact"> 59<colgroup> 60<col align="left" valign="top"> 61<col> 62</colgroup> 63<tbody><tr> 64<td><p><span class="term">Returns:</span></p></td> 65<td><p>The actual attribute value. It shall not return empty values (exceptions shall be used to indicate errors). </p></td> 66</tr></tbody> 67</table></div> 68</li></ol></div> 69</div> 70</div> 71</div> 72<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 73<td align="left"></td> 74<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 75 Distributed under the Boost Software License, Version 1.0. (See accompanying 76 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>). 77 </p> 78</div></td> 79</tr></table> 80<hr> 81<div class="spirit-nav"> 82<a accesskey="p" href="impl.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../function.html#idm44984882756544"><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="../make_function.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 83</div> 84</body> 85</html> 86