[meta] Add hb_decay<>

This commit is contained in:
Behdad Esfahbod 2019-04-26 12:52:28 -07:00
parent 474f3587cd
commit 52bb0346d3
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,8 @@ template <typename T> struct hb_match_pointer<T *> { typedef T type; enum { valu
template <typename T> using hb_remove_pointer = typename hb_match_pointer<T>::type;
#define hb_is_pointer(T) hb_match_pointer<T>::value
template <typename T> using hb_decay = hb_remove_const<hb_remove_reference<T>>;
/* std::move and std::forward */