Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
test_format.cc
Go to the documentation of this file.
1#include <cstddef>
2#include <tuple>
3
4struct Observer
5{
6 template <typename Lattice>
7 void on_step_end(std::size_t, const Lattice &)
8 {}
9};
10
11class Test {
12 std::tuple<Observer, Observer> obs_;
13public:
14 template <typename Lattice>
15 void on_step_end(std::size_t step, const Lattice &frame)
16 {
17 std::apply( [&](auto &...o)
18 {
19 (o.on_step_end(step, frame), ...);
20 },
21 obs_);
22 }
23};
24
25int main()
26{
27 return 0;
28}
void on_step_end(std::size_t step, const Lattice &frame)
std::tuple< Observer, Observer > obs_
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Definition Blossom.H:466
void on_step_end(std::size_t, const Lattice &)
Definition test_format.cc:7
int main()