类似于 c++11 中的 boost::mpl::if_
Similarly to boost::mpl::if_ in c++11
在 C++ 中是否有 boost::mpl::if_
的替代品?
我没有机会使用 boost。
std::conditional
(C++11) should fit your needs.
也许您可以将它用作替代品。
自 Boost 1.66 以来,Boost.MP11 is a C++11 metaprogramming library available as replacement where Boost.MPL is no longer good enough。 Boost.MP11 提供 mp_if
.
在 C++ 中是否有 boost::mpl::if_
的替代品?
我没有机会使用 boost。
std::conditional
(C++11) should fit your needs.
也许您可以将它用作替代品。
自 Boost 1.66 以来,Boost.MP11 is a C++11 metaprogramming library available as replacement where Boost.MPL is no longer good enough。 Boost.MP11 提供 mp_if
.