![]() |
Home | Libraries | People | FAQ | More |
boost::dll::experimental::import_class
// In header: <boost/dll/import_class.hpp> template<typename T, Args> imported_class< ( lib, size, args);
Returns an instance of imported_class
which allows to call or import more functions. It takes a copy of the smart_libray, so no added type_aliases will be visible, for the object.
Few compilers do implement an allocating constructor, which allows the construction of the class without knowing the size. That is not portable, so the actual size of the class shall always be provided.
Example:
In this example we construct an instance of the class "class_name" with the size 20, which has "type_alias" as an alias, through a constructor which takes a const-ref of std::string and an std::size_t parameter.
Parameters: |
|
||||
Template Parameters: |
|
||||
Returns: |
class object. |
||||
Throws: |