Non-owning wrapper for C-API opaque handle types.
More...
#include <eagine/handle.hpp>
|
using | tag_type = Tag |
| Alias for the tag type.
|
|
using | handle_type = Handle |
| Alias for the underlying handle type.
|
|
template<typename Tag, typename Handle, Handle invalid = ~Handle(0)>
class eagine::basic_handle< Tag, Handle, invalid >
Non-owning wrapper for C-API opaque handle types.
- Template Parameters
-
Tag | type distinguisihing various handler with the same underlying type. |
Handle | the underlying handle type. |
invalid | the invalid value for this particular handle type. |
- See also
- basic_owned_handle
- Examples
- oalplus/005_hello_world.cpp.
◆ basic_handle()
template<typename Tag , typename Handle , Handle invalid = ~Handle(0)>
Default constructor.
- Postcondition
- !is_valid()
◆ operator bool()
template<typename Tag , typename Handle , Handle invalid = ~Handle(0)>
|
inlineexplicitconstexprnoexcept |
Indicates if this instance contains a valid handle.
- See also
- is_valid
The documentation for this class was generated from the following file: