MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::math::GCD< A, B > Struct Template Reference

Template to get GCD of numbers. More...

#include <templates.hpp>

Inheritance diagram for mtcore::math::GCD< A, B >:

Static Public Attributes

static constexpr auto t = B
 
static constexpr auto b = math::mod(A, B)
 
static constexpr auto a = t
 
static constexpr auto value = GCD<a, b>::value
 

Detailed Description

template<intmax_t A, intmax_t B>
struct mtcore::math::GCD< A, B >

Template to get GCD of numbers.

Result in static member value.

Template Parameters
Anumber a
BNumber b

Definition at line 43 of file templates.hpp.

Member Data Documentation

◆ a

template<intmax_t A, intmax_t B>
auto mtcore::math::GCD< A, B >::a = t
staticconstexpr

Definition at line 46 of file templates.hpp.

◆ b

template<intmax_t A, intmax_t B>
auto mtcore::math::GCD< A, B >::b = math::mod(A, B)
staticconstexpr

Definition at line 45 of file templates.hpp.

◆ t

template<intmax_t A, intmax_t B>
auto mtcore::math::GCD< A, B >::t = B
staticconstexpr

Definition at line 44 of file templates.hpp.

◆ value

template<intmax_t A, intmax_t B>
auto mtcore::math::GCD< A, B >::value = GCD<a, b>::value
staticconstexpr

Definition at line 47 of file templates.hpp.


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