unfuzippedは、boost::tupleの代わりにboost::fusion::vectorを使用するunzippedです。
#include <iostream> #include <boost/fusion/container/vector.hpp> #include <boost/fusion/container/generation/make_vector.hpp> #include <boost/fusion/sequence/io.hpp> #include <pstade/oven/initial_values.hpp> #include <pstade/oven/unfuzipped.hpp> #include <pstade/oven/io.hpp> using namespace pstade::oven; namespace fusion = boost::fusion; int main() { const std::vector<fusion::vector<int, int> > v = initial_values(fusion::make_vector(1, 4), fusion::make_vector(2, 5), fusion::make_vector(3, 6)); std::cout << (v|unfuzipped) << std::endl; }
({1,2,3} {4,5,6})