diff options
Diffstat (limited to 'deps/tao_tuple/28626e99/include/tao/seq/tail.hpp')
-rw-r--r-- | deps/tao_tuple/28626e99/include/tao/seq/tail.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/deps/tao_tuple/28626e99/include/tao/seq/tail.hpp b/deps/tao_tuple/28626e99/include/tao/seq/tail.hpp new file mode 100644 index 0000000000..da0caa6f1a --- /dev/null +++ b/deps/tao_tuple/28626e99/include/tao/seq/tail.hpp @@ -0,0 +1,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 |