C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf_euclidean.hpp File Reference
#include <tpf_types.hpp>
#include <utility>
Include dependency graph for tpf_euclidean.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tpf
 Includes subnamespace conversion.
 
namespace  tpf::euclidean
 Implements Euclidean Algorithm for GCD, LCM.
 
namespace  tpf::euclidean::hidden
 

Macros

#define NOMINMAX
 

Functions

template<typename Type >
enable_if_in_list_t< Type, integral_list_t > tpf::euclidean::gcd (Type a, Type b)
 
template<template< typename, typename... > class ContainerType, typename EleType >
enable_if_in_list_t< EleType, integral_list_t > tpf::euclidean::gcd (const ContainerType< EleType > &container)
 
template<typename Type , typename... Types>
auto tpf::euclidean::gcd (Type arg, Types... args)
 
template<typename Type >
enable_if_in_list_t< Type, integral_list_t > tpf::euclidean::lcm (Type a, Type b)
 
template<typename Type , typename... Types>
auto tpf::euclidean::lcm (Type arg, Types... args)
 
template<template< typename, typename... > class ContainerType, typename EleType >
enable_if_in_list_t< EleType, integral_list_t > tpf::euclidean::lcm (const ContainerType< EleType > &container)
 
template<typename Type >
enable_if_in_list_t< Type, integral_list_t, void > tpf::euclidean::reduce (Type &a, Type &b)
 
template<typename Type >
Type tpf::euclidean::hidden::extended_euclidean_algorithm (Type a, Type b, Type &x, Type &y)
 
template<typename Type >
Type tpf::euclidean::extended_euclidean_algorithm (Type a, Type b, Type &x, Type &y)
 

Detailed Description

Author
your name (you@d.nosp@m.omai.nosp@m.n.com)
Version
0.1
Date
2019-04-18

Definition in file tpf_euclidean.hpp.

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Definition at line 15 of file tpf_euclidean.hpp.