C++ Library Extensions 2022.12.09
To help learn modern C++ programming
011-set.cpp
Go to the documentation of this file.
1#include <tpf_types.hpp>
2#include <tpf_output.hpp>
3#include <tpf_set.hpp>
4
6{
7 using set_tag = tpf::set_tag<int, std::deque>;
8
9 tpf::ostream stream;
10 auto nl = "\n";
11
13 using set_t = set_tag::set_t;
14 using sets_t = set_tag::sets_t;
17
18 set_t A{0, 1, 2, 3, 4};
19
21
22}
23
24
25
26int main()
27{
29}
void examples_set()
Definition: 011-set.cpp:5
int main()
Definition: 011-set.cpp:26
auto nl
std::deque< element_t > set_t
Definition: 061-subsets.cpp:9
std::deque< set_t > sets_t
Definition: 061-subsets.cpp:10
size_t element_t
Definition: 061-subsets.cpp:8
tpf::sstream stream
ContainerType< ContainerType< EleType, Types... > > build_subsets(const ContainerType< EleType, Types... > &S, size_t count=InvalidIndex)
Definition: tpf_set.hpp:1259
typename SetTagType::sets_of_sets_t sets_of_sets_t
Definition: tpf_types.hpp:1975
typename SetTagType::set_of_sets_t set_of_sets_t
Definition: tpf_types.hpp:1972
Stream output operators << are implemented.
Implements set operations.
Type functions are implemented.