[meta] Add hb_move and hb_forward ala std::
This commit is contained in:
parent
9a19b885f9
commit
7c9ceabcef
|
@ -72,6 +72,17 @@ static const struct
|
|||
} hb_deref_pointer HB_UNUSED;
|
||||
|
||||
|
||||
/* std::move and std::forward */
|
||||
|
||||
template <typename T>
|
||||
hb_remove_reference (T)&& hb_move (T&& t) { return (hb_remove_reference (T)&&) (t); }
|
||||
|
||||
template <typename T>
|
||||
T&& hb_forward (hb_remove_reference (T)& t) { return (T&&) t; }
|
||||
template <typename T>
|
||||
T&& hb_forward (hb_remove_reference (T)&& t) { return (T&&) t; }
|
||||
|
||||
|
||||
/* Void! For when we need a expression-type of void. */
|
||||
struct hb_void_t { typedef void value; };
|
||||
|
||||
|
|
Loading…
Reference in New Issue