Creates a wrapper around an OptionalHandle class.
More...
#include <kanzi/core/util/handle.hpp>
|
| template<typename... Args, typename = enable_if_t<s_hasCreateMethodV<T, tuple<Args...>>>> |
| static Derived | create (Args &&... args) noexcept |
| | Creates an optional handle by calling static "create" method provided by T.
|
| |
template<
typename Derived,
typename T>
class kanzi::OptionalHandleWrapper< Derived, T >
Creates a wrapper around an OptionalHandle class.
- See also
- For examples, see OptionalHandle.
- Template Parameters
-
| Derived | Derived class (CRTP pattern). |
| T | Class derived from OptionalHandle that includes domain-specific methods. |
- Since
- Kanzi 4.0.0
◆ NativeHandleType
Alias for the underlying native handle type.
◆ OptionalHandleWrapper()
template<typename... Args>
◆ create()
template<typename... Args,
typename = enable_if_t<s_hasCreateMethodV<T, tuple<Args...>>>>
Creates an optional handle by calling static "create" method provided by T.
Only available if T provides "create" method.
- Template Parameters
-
- Parameters
-
| args | Arguments to pass for handle creation. |
- Returns
- OptionalHandleWrapper based on provided T class.
◆ operator->() [1/2]
Provides access to T through pointer.
◆ operator->() [2/2]
Provides access to T through const pointer.
The documentation for this class was generated from the following file: