提交 8ecae793 编写于 作者: B Behdad Esfahbod

[meta] Add hb_is_cr_convertible_to()

上级 52bb0346
...@@ -98,6 +98,11 @@ template <typename T> using hb_remove_pointer = typename hb_match_pointer<T>::ty ...@@ -98,6 +98,11 @@ template <typename T> using hb_remove_pointer = typename hb_match_pointer<T>::ty
template <typename T> using hb_decay = hb_remove_const<hb_remove_reference<T>>; template <typename T> using hb_decay = hb_remove_const<hb_remove_reference<T>>;
#define hb_is_cr_convertible_to(A, B) ( \
hb_is_same (hb_decay<A>, hb_decay<B>) && \
hb_is_const (A) <= hb_is_const (B) && \
hb_is_reference (A) >= hb_is_reference (B))
/* std::move and std::forward */ /* std::move and std::forward */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册