diff options
Diffstat (limited to 'doc/html/BOOST_DLL_ALIAS.html')
-rw-r--r-- | doc/html/BOOST_DLL_ALIAS.html | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/doc/html/BOOST_DLL_ALIAS.html b/doc/html/BOOST_DLL_ALIAS.html index 93738ed7ad..95fc4b3430 100644 --- a/doc/html/BOOST_DLL_ALIAS.html +++ b/doc/html/BOOST_DLL_ALIAS.html @@ -4,7 +4,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Macro BOOST_DLL_ALIAS</title> <link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css"> -<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="boost_dll/reference.html#header.boost.dll.alias_hpp" title="Header <boost/dll/alias.hpp>"> <link rel="prev" href="BOOST_DLL_SECTION.html" title="Macro BOOST_DLL_SECTION"> @@ -34,29 +34,35 @@ </span>BOOST_DLL_ALIAS(FunctionOrVar, AliasName)</pre></div> <div class="refsect1"> -<a name="idp131902192"></a><h2>Description</h2> -<p>This macro is useful in cases of long mangled C++ names. For example some `void boost::foo(std::sting)` function name will change to something like `N5boostN3foosE` after mangling. Importing function by `N5boostN3foosE` name does not looks user friendly, especially assuming the fact that different compilers have different mangling schemes. AliasName is the name that won't be mangled and can be used as a portable import name.</p> +<a name="idm45928056039312"></a><h2>Description</h2> +<p>This macro is useful in cases of long mangled C++ names. For example some <code class="computeroutput">void boost::foo(std::sting)</code> function name will change to something like <code class="computeroutput">N5boostN3foosE</code> after mangling. Importing function by <code class="computeroutput">N5boostN3foosE</code> name does not looks user friendly, especially assuming the fact that different compilers have different mangling schemes. AliasName is the name that won't be mangled and can be used as a portable import name.</p> <p>Can be used in any namespace, including global. FunctionOrVar must be fully qualified, so that address of it could be taken. Multiple different aliases for a single variable/function are allowed.</p> <p>Make sure that AliasNames are unique per library/executable. Functions or variables in global namespace must not have names same as AliasNames.</p> <p>Same AliasName in different translation units must point to the same FunctionOrVar.</p> <p>Puts all the aliases into the <span class="bold"><strong>"boostdll"</strong></span> read only section of the binary. Equal to <a class="link" href="BOOST_DLL_ALIAS_SECTIONED.html" title="Macro BOOST_DLL_ALIAS_SECTIONED">BOOST_DLL_ALIAS_SECTIONED</a>(FunctionOrVar, AliasName, boostdll).</p> <p> <span class="bold"><strong>Example:</strong></span> </p> -<pre class="programlisting"> <span class="keyword">namespace</span> <span class="identifier">foo</span> <span class="special">{</span> - <span class="keyword">void</span> <span class="identifier">bar</span><span class="special">(</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> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">foo</span> <span class="special">{</span> + <span class="keyword">void</span> <span class="identifier">bar</span><span class="special">(</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> - <span class="identifier">BOOST_DLL_ALIAS</span><span class="special">(</span><span class="identifier">foo</span><span class="special">::</span><span class="identifier">bar</span><span class="special">,</span> <span class="identifier">foo_bar</span><span class="special">)</span> - <span class="special">}</span> + <span class="identifier">BOOST_DLL_ALIAS</span><span class="special">(</span><span class="identifier">foo</span><span class="special">::</span><span class="identifier">bar</span><span class="special">,</span> <span class="identifier">foo_bar</span><span class="special">)</span> +<span class="special">}</span> - <span class="identifier">BOOST_DLL_ALIAS</span><span class="special">(</span><span class="identifier">foo</span><span class="special">::</span><span class="identifier">bar</span><span class="special">,</span> <span class="identifier">foo_bar_another_alias_name</span><span class="special">)</span> +<span class="identifier">BOOST_DLL_ALIAS</span><span class="special">(</span><span class="identifier">foo</span><span class="special">::</span><span class="identifier">bar</span><span class="special">,</span> <span class="identifier">foo_bar_another_alias_name</span><span class="special">)</span> </pre> -<p><span class="bold"><strong>See:</strong></span> <a class="link" href="BOOST_DLL_ALIAS_SECTIONED.html" title="Macro BOOST_DLL_ALIAS_SECTIONED">BOOST_DLL_ALIAS_SECTIONED</a> for making alias in a specific section. </p> -<div class="variablelist"><table border="0"> +<p><span class="bold"><strong>See: <a class="link" href="BOOST_DLL_ALIAS_SECTIONED.html" title="Macro BOOST_DLL_ALIAS_SECTIONED">BOOST_DLL_ALIAS_SECTIONED</a></strong></span> for making alias in a specific section. </p> +<div class="variablelist"><table border="0" class="variablelist compact"> +<colgroup> <col align="left" valign="top"> +<col> +</colgroup> <tbody><tr> <td><p><span class="term">Parameters:</span></p></td> -<td><div class="variablelist"><table border="0"> +<td><div class="variablelist"><table border="0" class="variablelist compact"> +<colgroup> <col align="left" valign="top"> +<col> +</colgroup> <tbody> <tr> <td><p><span class="term"><code class="computeroutput">AliasName</code></span></p></td> @@ -74,7 +80,7 @@ </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> -<td align="right"><div class="copyright-footer">Copyright © 2014 Renato Tegon Forti, Antony Polukhin<br>Copyright © 2015, 2016 Antony Polukhin<p> +<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<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) </p> |