C++ Library Extensions 2022.12.09
To help learn modern C++ programming
080-next_permu.cpp
Go to the documentation of this file.
1#include <tpf_output.hpp>
3#include <tpf_set.hpp>
4
5namespace ncrnpr = tpf::ncrnpr;
6
8auto& endl = tpf::endl;
9auto nl = tpf::nl;
10
12{
13 auto permutations = tpf::set::build_permutations(10, 3, 3);
14
15 for(auto p: permutations)
16 {
17 stream << p << ": " << tpf::set::hidden::inversion(p) << nl;
18 }
19
20 stream << endl;
21
22}
23
24int main()
25{
27}
auto & endl
tpf::sstream stream
void test_permutation()
auto nl
int main()
Implements nCr, nPr.
Definition: tpf_ncrnpr.hpp:64
auto build_permutations(ThreadCountType thread_count, NType n, RType r)
Definition: tpf_set.hpp:1110
constexpr auto endl
Definition: tpf_output.hpp:973
constexpr auto nl
Definition: tpf_output.hpp:971
Stream output operators << are implemented.
Implements set operations.