2009-02-10から1日間の記事一覧

Boost.MPLのコンパイル時アルゴリズム

C++

Boost.MPLの練習。 find #include <boost/mpl/vector.hpp> #include <boost/mpl/find.hpp> #include <boost/type_traits.hpp> #include <boost/static_assert.hpp> using namespace boost; using namespace boost::mpl; int main() { typedef vector<int, char, double> seq; typedef find<seq, char>::type result; BOOST_STAT…</seq,></int,></boost/static_assert.hpp></boost/type_traits.hpp></boost/mpl/find.hpp></boost/mpl/vector.hpp>