template<typename T, T v>
struct boost::mpl::integral_c< T, v >
Adapter for IntegralConstants from the Boost.MPL.
Provided models
Constant
and IntegralConstant
A Boost.MPL IntegralConstant is a model of the IntegralConstant
and Constant
concepts just like hana::integral_constant
s are. As a consequence, they are also implicitly a model of the concepts provided for all models of Constant
. #include <boost/mpl/int.hpp>
#include <boost/mpl/long.hpp>
namespace mpl = boost::mpl;
static_assert(
hana::value(mpl::integral_c<int, 3>{}) == 3,
"");
int main() { }