/* Copyright 2016 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org/libs/poly_collection for library home page. */ #ifndef BOOST_POLY_COLLECTION_DETAIL_INTEGER_SEQUENCE_HPP #define BOOST_POLY_COLLECTION_DETAIL_INTEGER_SEQUENCE_HPP #if defined(_MSC_VER) #pragma once #endif #include namespace boost{ namespace poly_collection{ namespace detail{ /* ripped from http://pdimov.com/cpp2/simple_cxx11_metaprogramming.html */ template struct integer_sequence{}; template struct next_integer_sequence; template struct next_integer_sequence> { using type=integer_sequence; }; template struct make_int_seq_impl; template using make_integer_sequence=typename make_int_seq_impl::type; template struct make_int_seq_impl { using type=typename next_integer_sequence< typename make_int_seq_impl::type>::type; }; template struct make_int_seq_impl { using type=integer_sequence; }; template using index_sequence=integer_sequence; template using make_index_sequence=make_integer_sequence; } /* namespace poly_collection::detail */ } /* namespace poly_collection */ } /* namespace boost */ #endif