Template Function boost::python::def_constant

Function Documentation

template<typename T>
void boost::python::def_constant(const char *name, const T &value)

Define a constant given its value and a name within the current Boost Python scope.

Template Parameters:

T – Type of the constant.

Parameters:
  • name[in] Name of the constant.

  • value[in] Value of the constant.