C++ Library Extensions 2022.12.09
To help learn modern C++ programming
013-euclidean.cpp
Go to the documentation of this file.
1#include <tpf_euclidean.hpp>
2#include <tpf_output.hpp>
3
4using namespace tpf;
5
7{
8 ostream stream;
9 auto nl = "\n";
10
11 // stream << euclidean::gcd(6, 10, 12) << nl;
12 stream << euclidean::lcm(6, 10, 12) << nl;
13
14 std::vector v{6, 10, 12};
15
16 // stream << euclidean::gcd(v) << nl;
17 stream << euclidean::lcm(v) << nl;
18
19}
20
21int main()
22{
24}
void examples_euclidean()
int main()
auto nl
tpf::sstream stream
enable_if_in_list_t< Type, integral_list_t > lcm(Type a, Type b)
Includes subnamespace conversion.
Definition: 31-visit.cpp:7
Stream output operators << are implemented.