Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/type_erasure/static_binding.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Boost.TypeErasure library
0002 //
0003 // Copyright 2011 Steven Watanabe
0004 //
0005 // Distributed under the Boost Software License Version 1.0. (See
0006 // accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // $Id$
0010 
0011 #ifndef BOOST_TYPE_ERASURE_STATIC_BINDING_HPP_INCLUDED
0012 #define BOOST_TYPE_ERASURE_STATIC_BINDING_HPP_INCLUDED
0013 
0014 namespace boost {
0015 namespace type_erasure {
0016 
0017 /**
0018  * Represents a mapping from placeholders to the actual types
0019  * that they bind to.
0020  *
0021  * \pre @c Map must be an MPL map whose keys are placeholders.
0022  */
0023 template<class Map>
0024 struct static_binding { typedef Map map_type; };
0025 
0026 /**
0027  * A convenience function to prevent constructor calls
0028  * from being parsed as function declarations.
0029  */
0030 template<class Map>
0031 static_binding<Map> make_binding() { return static_binding<Map>(); }
0032 
0033 }
0034 }
0035 
0036 #endif