![]() |
Home | Libraries | People | FAQ | More |
boost::dll::experimental::import_mangled
// In header: <boost/dll/import_mangled.hpp> template< Args> ( lib, name, mode = );
Returns callable object or boost::shared_ptr<T> that holds the symbol imported from the loaded library. Returned value refcounts usage of the loaded shared library, so that it won't get unload until all copies of return value are not destroyed.
For importing symbols by alias names use boost::dll::import_alias method.
Examples:
Additionally you can also import overloaded symbols, including member-functions.
If qualified member-functions are needed, this can be set by repeating the class name with const or volatile. All following signatures after the redifintion will use this, i.e. the latest.
*
Template parameter T: Type of the symbol that we are going to import. Must be explicitly specified.
xmlonly <link linkend='boost.dll.fs.system_error'>boost::dll::fs::system_error</link> if symbol does not exist or if the DLL/DSO was not loaded. Overload that accepts path also throws std::bad_alloc in case of insufficient memory.
Parameters: |
|
||||||
Returns: |
callable object if T is a function type, or boost::shared_ptr<T> if T is an object type. |
||||||
Throws: |