refactor: move type alias from get to trait

This commit is contained in:
ToruNiina
2019-06-02 20:43:08 +09:00
parent 4664f91517
commit e094d6e85a
2 changed files with 66 additions and 59 deletions

View File

@@ -197,6 +197,11 @@ struct index_sequence_maker<0>
template<std::size_t N>
using make_index_sequence = typename index_sequence_maker<N-1>::type;
// ---------------------------------------------------------------------------
// C++14 enable_if_t
template<bool B, typename T>
using enable_if_t = typename std::enable_if<B, T>::type;
// ---------------------------------------------------------------------------
// return_type_of_t