MCPcopy Create free account
hub / github.com/boostorg/hana / equal

Class equal

example/tutorial/appendix_mpl.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239template <typename S1, typename S2, typename Pred = mpl::quote2<std::is_same>>
240struct equal
241 : decltype( // inefficient but whatever
242 hana::length(S1{}) == hana::length(S2{}) &&
243 hana::all(hana::zip_shortest_with(detail::mpl_predicate<Pred>,
244 hana::to_tuple(S1{}),
245 hana::to_tuple(S2{})))
246 )
247{ };
248
249//////////////////////////////////////////////////////////////////////////////
250// Transformation algorithms

Callers 15

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mpl_vector.cppFile · 0.50
applicative.cppFile · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 15

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
TestComparableMethod · 0.40
TestComparableMethod · 0.40
TestComparableMethod · 0.40