Provide a specialization for loaded_function to handle a void
return type.
More...
#include <shared_library.hpp>
|
T * | m_function |
| The function pointer that may be invoked.
|
|
template<typename T>
struct psystem::shared_library::loaded_function< T, std::true_type >
Provide a specialization for loaded_function to handle a void
return type.
- Template Parameters
-
T | The function signature that will be used to store the wrapped function. |
- Author
- Matt Bisson
- Date
- 19 November, 2015
- Since
- PSystem 2.0
- Version
- PSystem 2.0
Construct a loaded_function from a function pointer.
- Parameters
-
[in] | proc | The proceedure's address. Type safety is out the window; we must trust you. This may be nullptr . |
- Todo:
- I would rather inherit the CTOR with "using base::base", but MSVC apparently does not support this.
template<typename T >
template<typename... Args>
Invoke the library function.
- Template Parameters
-
Args | The argument pack should match the declared function signature. |
- Parameters
-
[in] | args | Zero or more arguments to be forwarded to the underlying function. Check the actual function signature and documentation for details. |
- Exceptions
-
Whatever | the underlying function throws. |
- Todo:
- Determine the
noexcept
value when MSVC supports it.
The documentation for this struct was generated from the following file: