Searched defs:hb_nonnull_ptr_t (Results 1 – 1 of 1) sorted by relevance
165 struct hb_nonnull_ptr_t struct169 hb_nonnull_ptr_t (T *v_ = nullptr) : v (v_) {} in hb_nonnull_ptr_t() argument170 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 …]