1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Reference</title> 6<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> 7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 8<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> 9<link rel="up" href="../boost_dll.html" title="Chapter 14. Boost.DLL"> 10<link rel="prev" href="missuses.html" title="Missuses"> 11<link rel="next" href="../BOOST_DL_idm45168081497664.html" title="Macro BOOST_DLL_FORCE_ALIAS_INSTANTIATION"> 12</head> 13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 14<table cellpadding="2" width="100%"><tr> 15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td> 16<td align="center"><a href="../../../index.html">Home</a></td> 17<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> 18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 20<td align="center"><a href="../../../more/index.htm">More</a></td> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="missuses.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_dll.html"><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="../BOOST_DL_idm45168081497664.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="section"> 27<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 28<a name="boost_dll.reference"></a><a class="link" href="reference.html" title="Reference">Reference</a> 29</h2></div></div></div> 30<div class="toc"><dl class="toc"> 31<dt><span class="section"><a href="reference.html#shared_library_reference">Shared Library Reference</a></span></dt> 32<dt><span class="section"><a href="reference.html#shared_library_refcountable_reference">Shared Library Refcountable Reference</a></span></dt> 33</dl></div> 34<div class="section"> 35<div class="titlepage"><div><div><h3 class="title"> 36<a name="shared_library_reference"></a>Shared Library Reference</h3></div></div></div> 37<div class="toc"><dl class="toc"> 38<dt><span class="section"><a href="reference.html#header.boost.dll.alias_hpp">Header <boost/dll/alias.hpp></a></span></dt> 39<dt><span class="section"><a href="reference.html#header.boost.dll.config_hpp">Header <boost/dll/config.hpp></a></span></dt> 40<dt><span class="section"><a href="reference.html#header.boost.dll.library_info_hpp">Header <boost/dll/library_info.hpp></a></span></dt> 41<dt><span class="section"><a href="reference.html#header.boost.dll.runtime_symbol_info_hpp">Header <boost/dll/runtime_symbol_info.hpp></a></span></dt> 42<dt><span class="section"><a href="reference.html#header.boost.dll.shared_library_hpp">Header <boost/dll/shared_library.hpp></a></span></dt> 43<dt><span class="section"><a href="reference.html#header.boost.dll.shared_library_load_mode_hpp">Header <boost/dll/shared_library_load_mode.hpp></a></span></dt> 44<dt><span class="section"><a href="reference.html#header.boost.dll.smart_library_hpp">Header <boost/dll/smart_library.hpp></a></span></dt> 45</dl></div> 46<div class="section"> 47<div class="titlepage"><div><div><h4 class="title"> 48<a name="header.boost.dll.alias_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/alias.hpp" target="_top">boost/dll/alias.hpp</a>></h4></div></div></div> 49<p>Includes alias methods and macro. You can include this header or boost/dll/shared_library.hpp to reduce dependencies in case you do not use the refcountable functions. </p> 50<pre class="synopsis"> 51 52<a class="link" href="../BOOST_DL_idm45168081497664.html" title="Macro BOOST_DLL_FORCE_ALIAS_INSTANTIATION">BOOST_DLL_FORCE_ALIAS_INSTANTIATION</a> 53<a class="link" href="../BOOST_DL_idm45168081495856.html" title="Macro BOOST_DLL_FORCE_NO_WEAK_EXPORTS">BOOST_DLL_FORCE_NO_WEAK_EXPORTS</a> 54<a class="link" href="../BOOST_DLL_SELECTANY.html" title="Macro BOOST_DLL_SELECTANY">BOOST_DLL_SELECTANY</a> 55<a class="link" href="../BOOST_DLL_SECTION.html" title="Macro BOOST_DLL_SECTION">BOOST_DLL_SECTION</a>(SectionName, Permissions) 56<a class="link" href="../BOOST_DLL_ALIAS.html" title="Macro BOOST_DLL_ALIAS">BOOST_DLL_ALIAS</a>(FunctionOrVar, AliasName) 57<a class="link" href="../BOOST_DLL_ALIAS_SECTIONED.html" title="Macro BOOST_DLL_ALIAS_SECTIONED">BOOST_DLL_ALIAS_SECTIONED</a>(FunctionOrVar, AliasName, SectionName) 58<a class="link" href="../BOOST_DLL_AUTO_ALIAS.html" title="Macro BOOST_DLL_AUTO_ALIAS">BOOST_DLL_AUTO_ALIAS</a>(FunctionOrVar)</pre> 59</div> 60<div class="section"> 61<div class="titlepage"><div><div><h4 class="title"> 62<a name="header.boost.dll.config_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/config.hpp" target="_top">boost/dll/config.hpp</a>></h4></div></div></div> 63<p>Imports filesystem, error_code, errc, system_error, make_error_code from Boost or C++17 into <code class="computeroutput">boost::dll::fs</code> namespace. </p> 64<pre class="synopsis"> 65 66<a class="link" href="../BOOST_DLL_USE_STD_FS.html" title="Macro BOOST_DLL_USE_STD_FS">BOOST_DLL_USE_STD_FS</a></pre> 67<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 68 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 69 <span class="keyword">namespace</span> <span class="identifier">fs</span> <span class="special">{</span> 70 <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special"><</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">></span> <a class="link" href="../boost/dll/fs/path.html" title="Type definition path"><span class="identifier">path</span></a><span class="special">;</span> 71 <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special"><</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">></span> <a class="link" href="../boost/dll/fs/error_code.html" title="Type definition error_code"><span class="identifier">error_code</span></a><span class="special">;</span> 72 <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special"><</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">system_error</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">system_error</span> <span class="special">></span> <a class="link" href="../boost/dll/fs/system_error.html" title="Type definition system_error"><span class="identifier">system_error</span></a><span class="special">;</span> 73 <span class="special">}</span> 74 <span class="special">}</span> 75<span class="special">}</span></pre> 76</div> 77<div class="section"> 78<div class="titlepage"><div><div><h4 class="title"> 79<a name="header.boost.dll.library_info_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/library_info.hpp" target="_top">boost/dll/library_info.hpp</a>></h4></div></div></div> 80<p>Contains only the <a class="link" href="../boost/dll/library_info.html" title="Class library_info">boost::dll::library_info</a> class that is capable of extracting different information from binaries. </p> 81<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 82 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 83 <span class="keyword">class</span> <a class="link" href="../boost/dll/library_info.html" title="Class library_info">library_info</a><span class="special">;</span> 84 <span class="special">}</span> 85<span class="special">}</span></pre> 86</div> 87<div class="section"> 88<div class="titlepage"><div><div><h4 class="title"> 89<a name="header.boost.dll.runtime_symbol_info_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/runtime_symbol_info.hpp" target="_top">boost/dll/runtime_symbol_info.hpp</a>></h4></div></div></div> 90<p>Provides methods for getting acceptable by <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">boost::dll::shared_library</a> location of symbol, source line or program. </p> 91<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 92 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 93 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 94 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> 95 <a class="link" href="../boost/dll/symbol_location_ptr.html" title="Function symbol_location_ptr"><span class="identifier">symbol_location_ptr</span></a><span class="special">(</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 96 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/symbol_location_ptr.html" title="Function symbol_location_ptr"><span class="identifier">symbol_location_ptr</span></a><span class="special">(</span><span class="identifier">T</span><span class="special">)</span><span class="special">;</span> 97 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 98 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> 99 <a class="link" href="../boost/dll/symbol_location.html" title="Function symbol_location"><span class="identifier">symbol_location</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 100 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/symbol_location.html" title="Function symbol_location"><span class="identifier">symbol_location</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 101 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/this_line_location.html" title="Function this_line_location"><span class="identifier">this_line_location</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 102 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/this_line_location.html" title="Function this_line_location"><span class="identifier">this_line_location</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 103 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/program_location.html" title="Function program_location"><span class="identifier">program_location</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 104 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../boost/dll/program_location.html" title="Function program_location"><span class="identifier">program_location</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 105 <span class="special">}</span> 106<span class="special">}</span></pre> 107</div> 108<div class="section"> 109<div class="titlepage"><div><div><h4 class="title"> 110<a name="header.boost.dll.shared_library_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/shared_library.hpp" target="_top">boost/dll/shared_library.hpp</a>></h4></div></div></div> 111<p>Contains the <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">boost::dll::shared_library</a> class, core class for all the DLL/DSO operations. </p> 112<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 113 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 114 <span class="keyword">class</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a><span class="special">;</span> 115 116 <span class="comment">// Very fast equality check that compares the actual DLL/DSO objects. Throws nothing. </span> 117 <span class="keyword">bool</span> <a name="boost.dll.operator=="></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 118 119 <span class="comment">// Very fast inequality check that compares the actual DLL/DSO objects. Throws nothing. </span> 120 <span class="keyword">bool</span> <a name="boost.dll.operator!="></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 121 122 <span class="comment">// Compare the actual DLL/DSO objects without any guarantee to be stable between runs. Throws nothing. </span> 123 <span class="keyword">bool</span> <a name="boost.dll.operator_idm45168072494832"></a><span class="keyword">operator</span><span class="special"><</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 124 125 <span class="comment">// Swaps two shared libraries. Does not invalidate symbols and functions loaded from libraries. Throws nothing. </span> 126 <span class="keyword">void</span> <a name="boost.dll.swap"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> lhs<span class="special">,</span> <a class="link" href="../boost/dll/shared_library.html" title="Class shared_library">shared_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 127 <span class="special">}</span> 128<span class="special">}</span></pre> 129</div> 130<div class="section"> 131<div class="titlepage"><div><div><h4 class="title"> 132<a name="header.boost.dll.shared_library_load_mode_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/shared_library_load_mode.hpp" target="_top">boost/dll/shared_library_load_mode.hpp</a>></h4></div></div></div> 133<p>Contains only the boost::dll::load_mode::type enum and operators related to it. </p> 134<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 135 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 136 <span class="keyword">namespace</span> <span class="identifier">load_mode</span> <span class="special">{</span> 137 <span class="keyword">enum</span> <a class="link" href="../boost/dll/load_mode/type.html" title="Type type">type</a><span class="special">;</span> 138 139 <span class="comment">// Free operators for load_mode::type flag manipulation. </span> 140 <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="boost.dll.load_mode.operator_idm45168072449888"></a><span class="keyword">operator</span><span class="special">|</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 141 <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&</span> <a name="boost.dll.load_mode.operator_idm45168072447344"></a><span class="keyword">operator</span><span class="special">|=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 142 <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="boost.dll.load_mode.operator&"></a><span class="keyword">operator</span><span class="special">&</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 143 <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&</span> <a name="boost.dll.load_mode.operator&="></a><span class="keyword">operator</span><span class="special">&=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 144 <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="boost.dll.load_mode.operator%5E"></a><span class="keyword">operator</span><span class="special">^</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 145 <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&</span> <a name="boost.dll.load_mode.operator%5E="></a><span class="keyword">operator</span><span class="special">^=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span> 146 <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="boost.dll.load_mode.operator~"></a><span class="keyword">operator</span><span class="special">~</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">)</span><span class="special">;</span> 147 <span class="special">}</span> 148 <span class="special">}</span> 149<span class="special">}</span></pre> 150</div> 151<div class="section"> 152<div class="titlepage"><div><div><h4 class="title"> 153<a name="header.boost.dll.smart_library_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/smart_library.hpp" target="_top">boost/dll/smart_library.hpp</a>></h4></div></div></div> 154<p>Contains the <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">boost::dll::experimental::smart_library</a> class for loading mangled symbols. </p> 155<div class="warning"><table border="0" summary="Warning"> 156<tr> 157<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td> 158<th align="left">Warning</th> 159</tr> 160<tr><td align="left" valign="top"><p>Extremely experimental! Requires C++11! Will change in next version of Boost! boost/dll/smart_library.hpp is not included in boost/dll.hpp </p></td></tr> 161</table></div> 162<p> 163</p> 164<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 165 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 166 <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span> 167 <span class="keyword">class</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a><span class="special">;</span> 168 169 <span class="comment">// Very fast equality check that compares the actual DLL/DSO objects. Throws nothing. </span> 170 <span class="keyword">bool</span> <a name="boost.dll.experimental.operator=="></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 171 172 <span class="comment">// Very fast inequality check that compares the actual DLL/DSO objects. Throws nothing. </span> 173 <span class="keyword">bool</span> <a name="boost.dll.experimental.operator!="></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 174 175 <span class="comment">// Compare the actual DLL/DSO objects without any guarantee to be stable between runs. Throws nothing. </span> 176 <span class="keyword">bool</span> <a name="boost.dll.experimental.operator_idm45168072275424"></a><span class="keyword">operator</span><span class="special"><</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 177 178 <span class="comment">// Swaps two shared libraries. Does not invalidate symbols and functions loaded from libraries. Throws nothing. </span> 179 <span class="keyword">void</span> <a name="boost.dll.experimental.swap"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> lhs<span class="special">,</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span> 180 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> T2<span class="special">></span> 181 <span class="keyword">void</span> <a class="link" href="../boost/dll/experimental/get_idm45168072268752.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 182 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 183 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_object</span><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 184 <a class="link" href="../boost/dll/experimental/get_idm45168072261120.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 185 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 186 <span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_function</span><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 187 <a class="link" href="../boost/dll/experimental/get_idm45168072254016.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 188 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Class<span class="special">,</span> <span class="keyword">typename</span> Signature<span class="special">></span> 189 <span class="keyword">auto</span> <a class="link" href="../boost/dll/experimental/get_idm45168072246912.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../boost/dll/experimental/smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 190 <span class="special">}</span> 191 <span class="special">}</span> 192<span class="special">}</span></pre> 193</div> 194</div> 195<div class="section"> 196<div class="titlepage"><div><div><h3 class="title"> 197<a name="shared_library_refcountable_reference"></a>Shared Library Refcountable Reference</h3></div></div></div> 198<div class="toc"><dl class="toc"> 199<dt><span class="section"><a href="reference.html#header.boost.dll.import_hpp">Header <boost/dll/import.hpp></a></span></dt> 200<dt><span class="section"><a href="reference.html#header.boost.dll.import_class_hpp">Header <boost/dll/import_class.hpp></a></span></dt> 201<dt><span class="section"><a href="reference.html#header.boost.dll.import_mangled_hpp">Header <boost/dll/import_mangled.hpp></a></span></dt> 202</dl></div> 203<div class="section"> 204<div class="titlepage"><div><div><h4 class="title"> 205<a name="header.boost.dll.import_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/import.hpp" target="_top">boost/dll/import.hpp</a>></h4></div></div></div> 206<p>Contains all the boost::dll::import* reference counting functions that hold a shared pointer to the instance of boost::dll::shared_library. </p> 207<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 208 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 209 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 210 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 211 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 212 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 213 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> 214 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 215 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 216 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 217 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 218 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 219 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 220 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 221 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import.html" title="Function import"><span class="identifier">import</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 222 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 223 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 224 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 225 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 226 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> 227 <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> 228 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 229 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 230 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 231 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 232 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 233 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 234 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 235 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> 236 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/import_alias.html" title="Function import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 237 <span class="special">}</span> 238<span class="special">}</span></pre> 239</div> 240<div class="section"> 241<div class="titlepage"><div><div><h4 class="title"> 242<a name="header.boost.dll.import_class_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/import_class.hpp" target="_top">boost/dll/import_class.hpp</a>></h4></div></div></div> 243<p>Contains the boost::dll::experimental::import_class function for importing classes. </p> 244<div class="warning"><table border="0" summary="Warning"> 245<tr> 246<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td> 247<th align="left">Warning</th> 248</tr> 249<tr><td align="left" valign="top"><p>Extremely experimental! Requires C++11! Will change in next version of Boost! boost/dll/import_class.hpp is not included in boost/dll.hpp </p></td></tr> 250</table></div> 251<p> 252</p> 253<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 254 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 255 <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span> 256 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">class</span> <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special">;</span> 257 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 258 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 259 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 260 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 261 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 262 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> 263 <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 264 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 265 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 266 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> 267 <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 268 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 269 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 270 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 271 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 272 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 273 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 274 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 275 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 276 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 277 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 278 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> 279 <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 280 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 281 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 282 <a class="link" href="../boost/dll/experimental/import_c_idm45168072854960.html" title="Function import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> 283 <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span> 284 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 285 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> <a name="boost.dll.experimental.import_c_idm45168072810080"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&</span> lib<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span> 286 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 287 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 288 <a name="boost.dll.experimental.import_c_idm45168072805872"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span> alias_name<span class="special">,</span> 289 <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span> 290 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 291 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 292 <a name="boost.dll.experimental.import_c_idm45168072800976"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span> 293 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 294 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 295 <a name="boost.dll.experimental.import_c_idm45168072796080"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> 296 <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span> alias_name<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span> 297 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">></span> 298 <a class="link" href="../boost/dll/experimental/imported_class.html" title="Class template imported_class">imported_class</a><span class="special"><</span> <span class="identifier">T</span> <span class="special">></span> 299 <a name="boost.dll.experimental.import_c_idm45168072236096"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span> alias_name<span class="special">,</span> 300 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span> 301 <span class="special">}</span> 302 <span class="special">}</span> 303<span class="special">}</span></pre> 304</div> 305<div class="section"> 306<div class="titlepage"><div><div><h4 class="title"> 307<a name="header.boost.dll.import_mangled_hpp"></a>Header <<a href="http://www.boost.org/doc/libs/1_60_0/boost/dll/import_mangled.hpp" target="_top">boost/dll/import_mangled.hpp</a>></h4></div></div></div> 308<p>Contains the boost::dll::experimental::import_mangled function for importing mangled symbols. </p> 309<div class="warning"><table border="0" summary="Warning"> 310<tr> 311<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td> 312<th align="left">Warning</th> 313</tr> 314<tr><td align="left" valign="top"><p>Extremely experimental! Requires C++11! Will change in next version of Boost! boost/dll/import_mangled.hpp is not included in boost/dll.hpp </p></td></tr> 315</table></div> 316<p> 317</p> 318<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 319 <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span> 320 <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span> 321 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 322 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 323 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 324 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 325 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&</span><span class="special">,</span> 326 <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">,</span> 327 <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span> 328 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 329 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 330 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 331 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 332 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 333 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 334 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 335 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 336 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 337 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 338 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 339 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&</span><span class="special">,</span> 340 <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 341 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 342 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span> 343 <span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">></span> 344 <span class="identifier">result_type</span> <a class="link" href="../boost/dll/experimental/import_mangled.html" title="Function import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 345 <span class="special">}</span> 346 <span class="special">}</span> 347<span class="special">}</span></pre> 348</div> 349</div> 350</div> 351<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 352<td align="left"></td> 353<td align="right"><div class="copyright-footer">Copyright © 2014 Renato Tegon Forti, Antony Polukhin<br>Copyright © 2015 Antony Polukhin<br>Copyright © 2016 Antony Polukhin, Klemens Morgenstern<br>Copyright © 2017-2019 Antony Polukhin<p> 354 Distributed under the Boost Software License, Version 1.0. (See accompanying 355 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 356 </p> 357</div></td> 358</tr></table> 359<hr> 360<div class="spirit-nav"> 361<a accesskey="p" href="missuses.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_dll.html"><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="../BOOST_DL_idm45168081497664.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> 362</div> 363</body> 364</html> 365