MCPcopy Create free account
hub / github.com/baidu/babylon / eq

Function eq

test/serialization/test_array.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename T, size_t N>
27bool eq(T (&left)[N], T (&right)[N]) {
28 for (size_t i = 0; i < N; ++i) {
29 if (!(left[i] == right[i])) {
30 return false;
31 }
32 }
33 return true;
34}
35
36TEST_F(ArrayTest, serializable_with_salar_element) {
37 ASSERT_TRUE(SerializeTraits<int[4]>::SERIALIZABLE);

Callers 1

operator==Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected