Home
last modified time | relevance | path

Searched defs:optional_view (Results 1 – 1 of 1) sorted by relevance

/arkcompiler/runtime_core/taihe/runtime/include/taihe/
Doptional.hpp37 struct optional_view { struct
38 optional_view(cpp_owner_t *handle) noexcept : m_handle(handle) {} // main constructor in optional_view() argument
40 optional_view() noexcept : optional_view(nullptr) {} in optional_view() function
42 optional_view(std::nullopt_t) : optional_view(nullptr) {} in optional_view() function
44 explicit operator bool() const in operator bool()
49 bool has_value() const in has_value()
54 cpp_owner_t const *operator->() const in operator ->()
59 cpp_owner_t const &operator*() const in operator *()
64 cpp_owner_t const &value() const in value()
69 cpp_owner_t value_or(cpp_owner_t &&default_value) const in value_or()
[all …]