Add Conditional

This commit is contained in:
Jean-Prost Frédéric 2019-11-24 13:05:40 +01:00
parent 04c3beba73
commit 0a1e3d1336

View file

@ -30,10 +30,12 @@ DEALINGS IN THE SOFTWARE.
namespace utf8
{
namespace internal {
template <bool B, typename U, typename F>
using Conditional = typename std::conditional<B,U,F>::type;
template <typename T>
using Iterator_category = typename std::iterator_traits<T>::iterator_category;
template <typename T>
using Decay = typename std::decay<T>::type;//std::decay_t in c++14
template <typename T>
using Decay = typename std::decay<T>::type;//std::decay_t in c++14
} // namespace internal
} // namespace utf8