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

Go to the source code of this file.

Typedefs

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

Functions

void build_subset (set_t S, set_t &R, size_t r, size_t m_th)
 
void test_subsets (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 045-subsets.cpp.

◆ set_t

using set_t = std::deque<element_t>

Definition at line 9 of file 045-subsets.cpp.

Function Documentation

◆ build_subset()

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

Definition at line 11 of file 045-subsets.cpp.

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

◆ main()

int main ( )

Definition at line 82 of file 045-subsets.cpp.

Here is the call graph for this function:

◆ test_subsets()

void test_subsets ( size_t  n,
size_t  r 
)

Definition at line 56 of file 045-subsets.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 045-subsets.cpp.

◆ endL

auto endL = tpf::endL

Definition at line 6 of file 045-subsets.cpp.

◆ stream

tpf::sstream stream

Definition at line 4 of file 045-subsets.cpp.