libstdc++
experimental/numeric File Reference

Go to the source code of this file.

Namespaces

 std
 

Macros

#define __cpp_lib_experimental_gcd_lcm
 
#define _GLIBCXX_EXPERIMENTAL_NUMERIC
 

Functions

template<typename _Mn , typename _Nn >
constexpr common_type_t< _Mn, _Nn > std::experimental::fundamentals_v2::gcd (_Mn __m, _Nn __n)
 
template<typename _Mn , typename _Nn >
constexpr common_type_t< _Mn, _Nn > std::experimental::fundamentals_v2::lcm (_Mn __m, _Nn __n)
 

Detailed Description

This is a TS C++ Library header.

Definition in file experimental/numeric.

Function Documentation

template<typename _Mn , typename _Nn >
constexpr common_type_t<_Mn, _Nn> std::experimental::fundamentals_v2::gcd ( _Mn  __m,
_Nn  __n 
)

Greatest common divisor.

Definition at line 58 of file experimental/numeric.

template<typename _Mn , typename _Nn >
constexpr common_type_t<_Mn, _Nn> std::experimental::fundamentals_v2::lcm ( _Mn  __m,
_Nn  __n 
)

Least common multiple.

Definition at line 70 of file experimental/numeric.