chsvlib
chsv helper source code
divmod_value< int_t, Dividend, Divisor > Struct Template Reference

Performs compile time calculation of the division of integral values, specified, together with specific type, as the template arguments. The result is a pair of a quotient and a remainder. More...

#include <chsvmath.h>

Static Public Attributes

static const int_t quotient = Dividend / Divisor
 Quotient.
 
static const int_t remainder = Dividend % Divisor
 Remainder.
 

Detailed Description

template<class int_t, int_t Dividend, int_t Divisor>
struct Chusov::Math::divmod_value< int_t, Dividend, Divisor >

Performs compile time calculation of the division of integral values, specified, together with specific type, as the template arguments. The result is a pair of a quotient and a remainder.

Template Parameters
int_tis an integral type of the input and output parameters.
Dividend
Divisor
See also
ceildiv_value

The documentation for this struct was generated from the following file: