Browse Source

meta: Some alias for uniforming

doc
Christos Houtouridis 5 years ago
parent
commit
ab729c5c81
2 changed files with 10 additions and 4 deletions
  1. +0
    -4
      include/utl/meta/if.h
  2. +10
    -0
      include/utl/meta/sfinae.h

+ 0
- 4
include/utl/meta/if.h View File

@@ -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;
//! @}
}


+ 10
- 0
include/utl/meta/sfinae.h View File

@@ -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…
Cancel
Save