Home
last modified time | relevance | path

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

/external/harfbuzz_ng/src/
Dhb-null.hh165 struct hb_nonnull_ptr_t struct
169 hb_nonnull_ptr_t (T *v_ = nullptr) : v (v_) {} in hb_nonnull_ptr_t() argument
170 T * operator = (T *v_) { return v = v_; } in operator =()
171 T * operator -> () const { return get (); } in operator ->()
172 T & operator * () const { return *get (); } in operator *()
173 T ** operator & () const { return &v; } in operator &()
175 template <typename C> operator const C * () const { return get (); } in operator const C*()
176 operator const char * () const { return (const char *) get (); } in operator const char*()
177 T * get () const { return v ? v : const_cast<T *> (&Null(T)); } in get()
178 T * get_raw () const { return v; } in get_raw()
[all …]