MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / create

Method create

src/backend/common/unique_handle.hpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

make_handleFunction · 0.45

Calls 1

createHandleFunction · 0.50

Tested by

no test coverage detected