types/traits: rename chain as compose
This commit is contained in:
parent
6f3952abcb
commit
b918aa7fc0
@ -30,12 +30,12 @@
|
|||||||
namespace util {
|
namespace util {
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
template <typename TypeT, template <typename> class ...ModifierT>
|
template <typename TypeT, template <typename> class ...ModifierT>
|
||||||
struct chain;
|
struct compose;
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
template <typename TypeT>
|
template <typename TypeT>
|
||||||
struct chain<TypeT> { using type = TypeT; };
|
struct compose<TypeT> { using type = TypeT; };
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
@ -44,7 +44,7 @@ namespace util {
|
|||||||
template <typename> class HeadT,
|
template <typename> class HeadT,
|
||||||
template <typename> class ...TailT
|
template <typename> class ...TailT
|
||||||
>
|
>
|
||||||
struct chain<TypeT, HeadT, TailT...> : public chain<
|
struct compose<TypeT, HeadT, TailT...> : public compose<
|
||||||
typename HeadT<TypeT>::type,
|
typename HeadT<TypeT>::type,
|
||||||
TailT...
|
TailT...
|
||||||
> { };
|
> { };
|
||||||
@ -52,7 +52,7 @@ namespace util {
|
|||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
template <typename T, template <typename> class ...Args>
|
template <typename T, template <typename> class ...Args>
|
||||||
using chain_t = typename chain<T, Args...>::type;
|
using chain_t = typename compose<T, Args...>::type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user