C++ Library Extensions 2022.12.09
To help learn modern C++ programming
046-permutations.cpp File Reference
#include <tpf_output.hpp>
#include <tpf_ncrnpr.hpp>
Include dependency graph for 046-permutations.cpp:

Go to the source code of this file.

Typedefs

using element_t = size_t
 
using set_t = std::vector< element_t >
 

Functions

void build_permutation (set_t S, set_t &R, size_t r, size_t m_th)
 
void test_permutations (size_t n, size_t r)
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 
auto endL = tpf::endL
 

Typedef Documentation

◆ element_t

using element_t = size_t

Definition at line 8 of file 046-permutations.cpp.

◆ set_t

using set_t = std::vector<element_t>

Definition at line 9 of file 046-permutations.cpp.

Function Documentation

◆ build_permutation()

void build_permutation ( set_t  S,
set_t R,
size_t  r,
size_t  m_th 
)

Definition at line 11 of file 046-permutations.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 56 of file 046-permutations.cpp.

Here is the call graph for this function:

◆ test_permutations()

void test_permutations ( size_t  n,
size_t  r 
)

Definition at line 35 of file 046-permutations.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 5 of file 046-permutations.cpp.

◆ endL

auto endL = tpf::endL

Definition at line 6 of file 046-permutations.cpp.

◆ stream

tpf::sstream stream

Definition at line 4 of file 046-permutations.cpp.