1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Struct template is_reference_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.Core"> 8<link rel="up" href="../core/ref.html#header.boost.core.ref_hpp" title="Header <boost/core/ref.hpp>"> 9<link rel="prev" href="../core/ref.html" title="ref"> 10<link rel="next" href="reference_wrapper.html" title="Class template reference_wrapper"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="../core/ref.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../core/ref.html#header.boost.core.ref_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="reference_wrapper.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="refentry"> 26<a name="boost.is_reference_wrapper"></a><div class="titlepage"></div> 27<div class="refnamediv"> 28<h2><span class="refentrytitle">Struct template is_reference_wrapper</span></h2> 29<p>boost::is_reference_wrapper — Determine if a type <code class="computeroutput">T</code> is an instantiation of <code class="computeroutput"><a class="link" href="reference_wrapper.html" title="Class template reference_wrapper">reference_wrapper</a></code>. </p> 30</div> 31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 32<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="../core/ref.html#header.boost.core.ref_hpp" title="Header <boost/core/ref.hpp>">boost/core/ref.hpp</a>> 33 34</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 35<span class="keyword">struct</span> <a class="link" href="is_reference_wrapper.html" title="Struct template is_reference_wrapper">is_reference_wrapper</a> <span class="special">{</span> 36 37 <span class="comment">// <a class="link" href="is_reference_wrapper.html#idm45442566520640-bb">public member functions</a></span> 38 <a class="link" href="is_reference_wrapper.html#idm45442566520080-bb"><span class="identifier">BOOST_STATIC_CONSTANT</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">)</span><span class="special">;</span> 39<span class="special">}</span><span class="special">;</span></pre></div> 40<div class="refsect1"> 41<a name="idm45312826463856"></a><h2>Description</h2> 42<p>The value static constant will be true if the type <code class="computeroutput">T</code> is a specialization of <code class="computeroutput"><a class="link" href="reference_wrapper.html" title="Class template reference_wrapper">reference_wrapper</a></code>. </p> 43<div class="refsect2"> 44<a name="idm45312826461216"></a><h3> 45<a name="idm45442566520640-bb"></a><code class="computeroutput">is_reference_wrapper</code> public member functions</h3> 46<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"> <a name="idm45442566520080-bb"></a><span class="identifier">BOOST_STATIC_CONSTANT</span><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div> 47</div> 48</div> 49</div> 50<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 51<td align="left"></td> 52<td align="right"><div class="copyright-footer">Copyright © 2014 Peter Dimov<br>Copyright © 2014 Glen Fernandes<br>Copyright © 2014 Andrey Semashev<p> 53 Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost 54 Software License, Version 1.0</a>. 55 </p> 56</div></td> 57</tr></table> 58<hr> 59<div class="spirit-nav"> 60<a accesskey="p" href="../core/ref.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../core/ref.html#header.boost.core.ref_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="reference_wrapper.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> 61</div> 62</body> 63</html> 64