| 79 | |
| 80 | template<typename... Args> |
| 81 | int create(Args... args) { |
| 82 | if (!handle_) { |
| 83 | int error = ResourceHandler<T>::createHandle( |
| 84 | &handle_, std::forward<Args>(args)...); |
| 85 | if (error) { handle_ = 0; } |
| 86 | return error; |
| 87 | } |
| 88 | return 0; |
| 89 | } |
| 90 | |
| 91 | // Returns true if the \p other unique_handle is the same as this handle |
| 92 | constexpr bool operator==(unique_handle &other) const noexcept { |
no test coverage detected