Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:10:12

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_BINDING_OF_HPP_INCLUDED
0012 #define BOOST_TYPE_ERASURE_BINDING_OF_HPP_INCLUDED
0013 
0014 #include <boost/type_erasure/detail/access.hpp>
0015 #include <boost/type_erasure/any.hpp>
0016 #include <boost/type_erasure/binding.hpp>
0017 
0018 namespace boost {
0019 namespace type_erasure {
0020 
0021 /**
0022  * \return The type bindings of an @ref any.
0023  *
0024  * \throws Nothing.
0025  */
0026 template<class Concept, class T>
0027 const binding<Concept>& binding_of(const any<Concept, T>& arg)
0028 {
0029     return ::boost::type_erasure::detail::access::table(arg);
0030 }
0031 
0032 }
0033 }
0034 
0035 #endif