Imported Upstream version 1.64.0
[platform/upstream/boost.git] / doc / html / boost / dll / experimental / get_idp47246384.html
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=US-ASCII">
5 <title>Function template get</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/reference.html#header.boost.dll.smart_library_hpp" title="Header &lt;boost/dll/smart_library.hpp&gt;">
10 <link rel="prev" href="smart_library.html" title="Class smart_library">
11 <link rel="next" href="get_idp47263104.html" title="Function template get">
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="smart_library.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_dll/reference.html#header.boost.dll.smart_library_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="get_idp47263104.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
25 </div>
26 <div class="refentry">
27 <a name="boost.dll.experimental.get_idp47246384"></a><div class="titlepage"></div>
28 <div class="refnamediv">
29 <h2><span class="refentrytitle">Function template get</span></h2>
30 <p>boost::dll::experimental::get</p>
31 </div>
32 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../boost_dll/reference.html#header.boost.dll.smart_library_hpp" title="Header &lt;boost/dll/smart_library.hpp&gt;">boost/dll/smart_library.hpp</a>&gt;
34
35 </span>
36 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> T2<span class="special">&gt;</span> 
37   <span class="keyword">void</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="smart_library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> sm<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">&amp;</span> name<span class="special">)</span><span class="special">;</span></pre></div>
38 <div class="refsect1">
39 <a name="idp244801184"></a><h2>Description</h2>
40 <p>Helper functions for overloads.</p>
41 <p>Gets either a variable, function or member-function, depending on the signature.</p>
42 <pre class="programlisting"><span class="identifier">smart_library</span> <span class="identifier">sm</span><span class="special">(</span><span class="string">"lib.so"</span><span class="special">)</span><span class="special">;</span>
43 <span class="identifier">get</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;</span><span class="special">(</span><span class="identifier">sm</span><span class="special">,</span> <span class="string">"space::value"</span><span class="special">)</span><span class="special">;</span> <span class="comment">//import a variable</span>
44 <span class="identifier">get</span><span class="special">&lt;</span><span class="keyword">void</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">&gt;</span><span class="special">(</span><span class="identifier">sm</span><span class="special">,</span> <span class="string">"space::func"</span><span class="special">)</span><span class="special">;</span> <span class="comment">//import a function</span>
45 <span class="identifier">get</span><span class="special">&lt;</span><span class="identifier">some_class</span><span class="special">,</span> <span class="keyword">void</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">&gt;</span><span class="special">(</span><span class="identifier">sm</span><span class="special">,</span> <span class="string">"space::class_::mem_fn"</span><span class="special">)</span><span class="special">;</span> <span class="comment">//import a member function</span>
46 </pre>
47 <p>
48 </p>
49 <div class="variablelist"><table border="0" class="variablelist compact">
50 <colgroup>
51 <col align="left" valign="top">
52 <col>
53 </colgroup>
54 <tbody><tr>
55 <td><p><span class="term">Parameters:</span></p></td>
56 <td><div class="variablelist"><table border="0" class="variablelist compact">
57 <colgroup>
58 <col align="left" valign="top">
59 <col>
60 </colgroup>
61 <tbody>
62 <tr>
63 <td><p><span class="term"><code class="computeroutput">name</code></span></p></td>
64 <td><p>The name of the entity to import </p></td>
65 </tr>
66 <tr>
67 <td><p><span class="term"><code class="computeroutput">sm</code></span></p></td>
68 <td><p>A reference to the <code class="computeroutput"><a class="link" href="smart_library.html" title="Class smart_library">smart_library</a></code> </p></td>
69 </tr>
70 </tbody>
71 </table></div></td>
72 </tr></tbody>
73 </table></div>
74 </div>
75 </div>
76 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
77 <td align="left"></td>
78 <td align="right"><div class="copyright-footer">Copyright &#169; 2014 Renato Tegon Forti, Antony Polukhin<br>Copyright &#169; 2015 Antony Polukhin<br>Copyright &#169; 2016 Antony Polukhin, Klemens Morgenstern<p>
79         Distributed under the Boost Software License, Version 1.0. (See accompanying
80         file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
81       </p>
82 </div></td>
83 </tr></table>
84 <hr>
85 <div class="spirit-nav">
86 <a accesskey="p" href="smart_library.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_dll/reference.html#header.boost.dll.smart_library_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="get_idp47263104.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
87 </div>
88 </body>
89 </html>