From f2faf7acf4445fef2a149ebbdecb569a2d119d94 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 2 Jul 2018 08:20:47 +0200 Subject: nothing important --- compat/meta.hpp | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'compat/meta.hpp') diff --git a/compat/meta.hpp b/compat/meta.hpp index 8682fdc8..11c5ca0f 100644 --- a/compat/meta.hpp +++ b/compat/meta.hpp @@ -11,9 +11,7 @@ static_assert(sizeof...(x) == ~0ul); \ static_assert(sizeof...(x) == 0u) -namespace meta { - -namespace detail { +namespace meta::detail { template struct tuple; @@ -47,27 +45,26 @@ namespace detail { { using type = to; }; -} // ns detail - - -template -using reverse = typename detail::reverse_, detail::tuple<>>::type; +} // ns meta::detail -// the to/from order is awkward but mimics function composition -template class to, typename from> -using lift = typename detail::lift_::type; +namespace meta { + template + using reverse = typename detail::reverse_, detail::tuple<>>::type; -template -using first = x; + // the to/from order is awkward but mimics function composition + template class to, typename from> + using lift = typename detail::lift_::type; -template -using rest = detail::tuple; + template + using first = x; -template -using butlast = reverse>>; + template + using rest = detail::tuple; -template -using last = lift>; + template + using butlast = reverse>>; + template + using last = lift>; } // ns meta -- cgit v1.2.3