MCPcopy Create free account
hub / github.com/audacity/audacity / compareSequences

Function compareSequences

libraries/lib-utility/tests/CompositeTest.cpp:48–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46// compilation of all the STL style accessors
47template<bool members = true, typename Container1, typename Container2>
48bool compareSequences(const Container1 &c1, const Container2 &c2)
49{
50 bool result = true;
51 if constexpr(members) {
52 result =
53 (equal(c1.begin(), c1.end(), c2.begin(), c2.end()))
54 &&
55 (equal(c1.cbegin(), c1.cend(), c2.cbegin(), c2.cend()))
56 &&
57 (equal(c1.rbegin(), c1.rend(), c2.rbegin(), c2.rend()))
58 &&
59 (equal(c1.crbegin(), c1.crend(), c2.crbegin(), c2.crend()));
60 }
61 result = result &&
62 (equal(begin(c1), end(c1), begin(c2), end(c2)))
63 &&
64 (equal(cbegin(c1), cend(c1), cbegin(c2), cend(c2)))
65 &&
66 (equal(rbegin(c1), rend(c1), rbegin(c2), rend(c2)))
67 &&
68 (equal(crbegin(c1), crend(c1), crbegin(c2), crend(c2)))
69 ;
70 return result;
71}
72}
73
74template<typename Container, auto Maker = nullptr, typename... Args>

Callers 2

DoTestFunction · 0.85
CompositeTest.cppFile · 0.85

Calls 15

rbeginFunction · 0.85
rendFunction · 0.85
crbeginFunction · 0.85
crendFunction · 0.85
cbeginMethod · 0.80
cendMethod · 0.80
crbeginMethod · 0.80
crendMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
cbeginFunction · 0.50
cendFunction · 0.50

Tested by

no test coverage detected