meta: Some alias for uniforming
This commit is contained in:
parent
44f7dff3dd
commit
ab729c5c81
@ -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;
|
||||
//!@{
|
||||
}
|
||||
|
||||
//! @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user