2008-12-28から1日間の記事一覧

[boost]Boost C++ Libraryのお勉強その9

boost::hash hash関数。興味ないので飛ばす。 boost::fusion tupleは各要素の型が違うのでSTLのアルゴリズムが使えないので、その辺に対応したもの。 #include <iostream> #include <string> #include <boost/fusion/tuple.hpp> #include <boost/fusion/algorithm.hpp> struct Print { template < typename T > void operator () (T </boost/fusion/algorithm.hpp></boost/fusion/tuple.hpp></string></iostream>…