blob: fcfecf0744fd0c86fcb808f8f62e16faca0cce31 (
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
|
// The Art of C++ / Sequences
// Copyright (c) 2015 Daniel Frey
#ifndef TAOCPP_SEQUENCES_INCLUDE_HEAD_HPP
#define TAOCPP_SEQUENCES_INCLUDE_HEAD_HPP
#include <type_traits>
#include "integer_sequence.hpp"
namespace tao
{
namespace seq
{
template< typename T, T... Ns >
struct head;
template< typename T, T N, T... Ns >
struct head< T, N, Ns... >
: std::integral_constant< T, N >
{};
template< typename T, T... Ns >
struct head< integer_sequence< T, Ns... > >
: head< T, Ns... >
{};
}
}
#endif // TAOCPP_SEQUENCES_INCLUDE_HEAD_HPP
|