blob: da0caa6f1a2020e2bf094642c6928c89e813da6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// The Art of C++ / Sequences
// Copyright (c) 2015 Daniel Frey
#ifndef TAOCPP_SEQUENCES_INCLUDE_TAIL_HPP
#define TAOCPP_SEQUENCES_INCLUDE_TAIL_HPP
#include <type_traits>
#include "integer_sequence.hpp"
namespace tao
{
namespace seq
{
template< typename T, T... Ns >
struct tail;
template< typename T, T N, T... Ns >
struct tail< T, N, Ns... >
{
using type = integer_sequence< T, Ns... >;
};
template< typename T, T... Ns >
struct tail< integer_sequence< T, Ns... > >
: tail< T, Ns... >
{};
template< typename T, T... Ns >
using tail_t = typename tail< T, Ns... >::type;
}
}
#endif // TAOCPP_SEQUENCES_INCLUDE_TAIL_HPP
|