/*============================================================================= Copyright (c) 2005-2013 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(BOOST_FUSION_BUILD_MAP_02042013_1448) #define BOOST_FUSION_BUILD_MAP_02042013_1448 #include #include #include #include #include #include #include #include #include namespace boost { namespace fusion { namespace detail { template ::value > struct build_map; template struct build_map { typedef map<> type; BOOST_FUSION_GPU_ENABLED static type call(First const&, Last const&) { return type(); } }; template struct push_front_map; template struct push_front_map> { typedef map type; BOOST_FUSION_GPU_ENABLED static type call(T const& first, map const& rest) { return type(push_front(rest, first)); } }; template struct build_map { typedef build_map::type, Last, is_assoc> next_build_map; typedef push_front_map< typename pair_from::type , typename next_build_map::type> push_front; typedef typename push_front::type type; BOOST_FUSION_GPU_ENABLED static type call(First const& f, Last const& l) { return push_front::call( pair_from::call(f) , next_build_map::call(fusion::next(f), l)); } }; }}} #endif