tinympl  0.2
mini MPL library for C++11
zip.hpp
1 // Copyright (C) 2013, Ennio Barbaro.
2 //
3 // Use, modification, and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://sbabbi.github.io/tinympl for documentation.
8 //
9 // You are welcome to contact the author at:
10 // enniobarbaro@gmail.com
11 //
12 
13 #ifndef TINYMPL_ZIP_HPP
14 #define TINYMPL_ZIP_HPP
15 
16 #include <tinympl/transpose.hpp>
17 
18 namespace tinympl {
19 
28 template<template<class ...> class OutSequence,
29  template<class ...> class ZipType,
30  class ... Sequences>
31 struct zip : transpose< sequence<Sequences...>, OutSequence, ZipType> {};
32 
33 } // namespace tinympl
34 
35 #endif // TINYMPL_ZIP_HPP
Transpose a sequence of sequences.
Definition: transpose.hpp:45
Construct a single sequence by zipping together multiple sequences.
Definition: zip.hpp:31