1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Struct template save_result_wrapper</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="../../utilities.html#header.boost.log.utility.functional.save_result_hpp" title="Header <boost/log/utility/functional/save_result.hpp>"> 9<link rel="prev" href="nop.html" title="Struct nop"> 10<link rel="next" href="save_result.html" title="Function template save_result"> 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="nop.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../utilities.html#header.boost.log.utility.functional.save_result_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="save_result.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.save_result_wrapper"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Struct template save_result_wrapper</span></h2> 22<p>boost::log::save_result_wrapper — Function object wrapper for saving the adopted function object result. </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="../../utilities.html#header.boost.log.utility.functional.save_result_hpp" title="Header <boost/log/utility/functional/save_result.hpp>">boost/log/utility/functional/save_result.hpp</a>> 26 27</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> FunT<span class="special">,</span> <span class="keyword">typename</span> AssigneeT<span class="special">></span> 28<span class="keyword">struct</span> <a class="link" href="save_result_wrapper.html" title="Struct template save_result_wrapper">save_result_wrapper</a> <span class="special">{</span> 29 <span class="comment">// types</span> 30 <span class="keyword">typedef</span> <span class="keyword">void</span> <a name="boost.log.save_result_wrapper.result_type"></a><span class="identifier">result_type</span><span class="special">;</span> 31 32 <span class="comment">// <a class="link" href="save_result_wrapper.html#boost.log.save_result_wrapperconstruct-copy-destruct">construct/copy/destruct</a></span> 33 <a class="link" href="save_result_wrapper.html#idm46079574084400-bb"><span class="identifier">save_result_wrapper</span></a><span class="special">(</span><span class="identifier">FunT</span><span class="special">,</span> <span class="identifier">AssigneeT</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 34 35 <span class="comment">// <a class="link" href="save_result_wrapper.html#idm46079574087776-bb">public member functions</a></span> 36 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgT<span class="special">></span> <span class="identifier">result_type</span> <a class="link" href="save_result_wrapper.html#idm46079574087216-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">ArgT</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> 37<span class="special">}</span><span class="special">;</span></pre></div> 38<div class="refsect1"> 39<a name="idm44984856766720"></a><h2>Description</h2> 40<div class="refsect2"> 41<a name="idm44984856766304"></a><h3> 42<a name="boost.log.save_result_wrapperconstruct-copy-destruct"></a><code class="computeroutput">save_result_wrapper</code> 43 public 44 construct/copy/destruct</h3> 45<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idm46079574084400-bb"></a><span class="identifier">save_result_wrapper</span><span class="special">(</span><span class="identifier">FunT</span> fun<span class="special">,</span> <span class="identifier">AssigneeT</span> <span class="special">&</span> assignee<span class="special">)</span><span class="special">;</span></pre></li></ol></div> 46</div> 47<div class="refsect2"> 48<a name="idm44984856757648"></a><h3> 49<a name="idm46079574087776-bb"></a><code class="computeroutput">save_result_wrapper</code> public member functions</h3> 50<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgT<span class="special">></span> <span class="identifier">result_type</span> <a name="idm46079574087216-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">ArgT</span> <span class="keyword">const</span> <span class="special">&</span> arg<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li></ol></div> 51</div> 52</div> 53</div> 54<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 55<td align="left"></td> 56<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 57 Distributed under the Boost Software License, Version 1.0. (See accompanying 58 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>). 59 </p> 60</div></td> 61</tr></table> 62<hr> 63<div class="spirit-nav"> 64<a accesskey="p" href="nop.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../utilities.html#header.boost.log.utility.functional.save_result_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="save_result.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 65</div> 66</body> 67</html> 68