MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
multiple_inheritance.hpp
Go to the documentation of this file.
1 
12 #ifndef BOOST_MPL11_DETAIL_AT_KEY_MULTIPLE_INHERITANCE_HPP
13 #define BOOST_MPL11_DETAIL_AT_KEY_MULTIPLE_INHERITANCE_HPP
14 
17 
18 
19 namespace boost { namespace mpl11 { namespace detail { namespace at_key {
20  template <typename key, typename value>
21  value multi_lookup_impl(pair<key, value>*);
22 
34  template <typename key, typename ...pairs>
35  using multiple_inheritance = decltype(
36  // Disable ADL or the template arguments of the pairs will
37  // be instantiated.
38  at_key::multi_lookup_impl<key>((inherit<pairs...>*)nullptr)
39  );
40 }}}} // end namespace boost::mpl11::detail::at_key
41 
42 #endif // !BOOST_MPL11_DETAIL_AT_KEY_MULTIPLE_INHERITANCE_HPP
Defines boost::mpl11::detail::inherit.
Defines boost::mpl11::detail::pair and boost::mpl11::index_pair.