提交 52bb0346 编写于 作者: B Behdad Esfahbod

[meta] Add hb_decay<>

上级 474f3587
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册