Template Function rmf_utils::modular¶
Defined in File Modular.hpp
Function Documentation¶
-
template<typename
V
>
Modular<V>rmf_utils
::
modular
(V value)¶ This function gives a convenient way to instantiate a Modular<V> object. The rules of C++ template instantiation do not allow a class constructor to infer the template type based on argument values, but function templates are able to make such an inference. This allows someone to call modular(v) instead of Modular<MyIntegerValue>(v) to get an object of type Modular<MyIntegerValue>.