MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
std_conditional.hpp
Go to the documentation of this file.
1 
12 #ifndef BOOST_MPL11_DETAIL_STD_CONDITIONAL_HPP
13 #define BOOST_MPL11_DETAIL_STD_CONDITIONAL_HPP
14 
15 namespace boost { namespace mpl11 { namespace detail {
21  template <bool Cond, typename Then, typename Else>
22  struct std_conditional {
23  using type = Then;
24  };
25 
26  template <typename Then, typename Else>
27  struct std_conditional<false, Then, Else> {
28  using type = Else;
29  };
30 }}} // end namespace boost::mpl11::detail
31 
32 #endif // !BOOST_MPL11_DETAIL_STD_CONDITIONAL_HPP
Equivalent to std::conditional.
Definition: std_conditional.hpp:22