From 49e2010b489ab6d5516a9abd896c67738e0dc1cc Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 7 Jun 2014 17:38:53 +0200 Subject: Provided previously missing Sequence template implementation * implemented for commit 5f6fc45 but not included into that commit --- src/support/type/sequence.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/support/type/sequence.h (limited to 'src') diff --git a/src/support/type/sequence.h b/src/support/type/sequence.h new file mode 100644 index 0000000..a404e71 --- /dev/null +++ b/src/support/type/sequence.h @@ -0,0 +1,29 @@ +#ifndef INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_ +#define INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_ + +#include +#include + +namespace InputXSLT { + +template +struct Sequence { + typedef Sequence type; +}; + +template < + std::size_t Size, + std::size_t Index = 0, + std::size_t... Current +> +struct IndexSequence { + typedef typename std::conditional< + Index < Size, + IndexSequence, + Sequence + >::type::type type; +}; + +} + +#endif // INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_ -- cgit v1.2.3