meta: Some alias for uniforming

这个提交包含在:
Christos Houtouridis 2018-10-27 23:16:52 +03:00
父节点 44f7dff3dd
当前提交 ab729c5c81
共有 2 个文件被更改,包括 10 次插入4 次删除

查看文件

@ -56,10 +56,6 @@ namespace utl {
//! Alias template for if_
template<bool _C, typename _Tp = void>
using if_t = typename if_<_C, _Tp>::type;
//! Publicly recognized alias template for if_
template<bool _C, typename _Tp = void>
using enable_if_t = typename if_<_C, _Tp>::type;
//! @}
}

查看文件

@ -109,6 +109,16 @@ namespace utl {
template <typename _T1, typename _T2, typename _Ret =_T1>
using use_if_both_t = typename use_if_both_<_T1, _T2, _Ret>::type;
//! @}
//! Publicly recognized alias template for if_t
template<bool _C, typename _Tp = void>
using enable_if_t = typename if_<_C, _Tp>::type;
//! Uniform use_ style alias template for if_t
//!@{
template<bool _C, typename _Tp = void>
using use_if_t = typename if_<_C, _Tp>::type;
//!@{
}
//! @}