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
4
using namespace
tpf
;
5
6
void
examples_euclidean
()
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
21
int
main
()
22
{
23
examples_euclidean
();
24
}
examples_euclidean
void examples_euclidean()
Definition:
013-euclidean.cpp:6
main
int main()
Definition:
013-euclidean.cpp:21
nl
auto nl
Definition:
017-expression-fold.cpp:4
stream
tpf::sstream stream
Definition:
apply_operations.cpp:31
tpf::euclidean::lcm
enable_if_in_list_t< Type, integral_list_t > lcm(Type a, Type b)
Definition:
tpf_euclidean.hpp:95
tpf
Includes subnamespace conversion.
Definition:
31-visit.cpp:7
tpf_euclidean.hpp
tpf_output.hpp
Stream output operators << are implemented.
CppExtension
examples
013-euclidean.cpp
Generated by
1.9.4