8#include <ext/algorithm>
13#include <alib/multimap>
26 template <
class T,
class R >
28 template <
class T,
class R >
41 out <<
"< " << *iter << std::endl;
43 out <<
"---" << std::endl;
46 out <<
"> " << *iter << std::endl;
52 std::set_difference ( a.
begin ( ), a.
end ( ), b.
begin ( ), b.
end ( ), std::inserter ( aMinusB, aMinusB.
begin ( ) ) );
55 std::set_difference ( b.
begin ( ), b.
end ( ), a.
begin ( ), a.
end ( ), std::inserter ( bMinusA, bMinusA.
begin ( ) ) );
58 out <<
"< " << * iter << std::endl;
60 out <<
"---" << std::endl;
63 out <<
"> " << * iter << std::endl;
75 out <<
"< " << *iter << std::endl;
77 out <<
"---" << std::endl;
80 out <<
"> " << *iter << std::endl;
83template <
class T,
class R>
92 out <<
"< " << iter->first <<
", " << iter->second << std::endl;
94 out <<
"---" << std::endl;
97 out <<
"> " << iter->first <<
", " << iter->second << std::endl;
100template <
class T,
class R>
103 std::set_difference(a.
begin(), a.
end(), b.
begin(), b.
end(), std::inserter(aMinusB, aMinusB.
begin()));
106 std::set_difference(b.
begin(), b.
end(), a.
begin(), a.
end(), std::inserter(bMinusA, bMinusA.
begin()));
109 out <<
"< " << iter->first <<
", " << iter->second << std::endl;
111 out <<
"---" << std::endl;
114 out <<
"> " << iter->first <<
", " << iter->second << std::endl;
static void setDiff(ext::ostream &out, const ext::set< T > &a, const ext::set< T > &b)
Definition: DiffAux.h:33
static void listDiff(ext::ostream &out, const ext::list< T > &a, const ext::list< T > &b)
Definition: DiffAux.h:67
static void vectorDiff(ext::ostream &out, const ext::vector< T > &a, const ext::vector< T > &b)
Definition: DiffAux.h:50
static void mapDiff(ext::ostream &out, const ext::map< T, R > &a, const ext::map< T, R > &b)
Definition: DiffAux.h:84
Class extending the list class from the standard library. Original reason is to allow printing of the...
Definition: list.hpp:44
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: list.hpp:100
auto end() &
Inherited behavior of end for non-const instance.
Definition: list.hpp:130
Class extending the map class from the standard library. Original reason is to allow printing of the ...
Definition: map.hpp:48
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: map.hpp:185
auto end() &
Inherited behavior of end for non-const instance.
Definition: map.hpp:215
Class extending the multimap class from the standard library. Original reason is to allow printing of...
Definition: multimap.hpp:48
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: multimap.hpp:167
auto end() &
Inherited behavior of end for non-const instance.
Definition: multimap.hpp:197
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: set.hpp:99
auto end() &
Inherited behavior of end for non-const instance.
Definition: set.hpp:129
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: vector.hpp:125
typename std::vector< T, Alloc >::const_iterator const_iterator
The type of constant values iterator.
Definition: vector.hpp:67
auto end() &
Inherited behavior of end for non-const instance.
Definition: vector.hpp:155
Definition: AutomatonCompare.h:29