MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / containersEqual

Function containersEqual

source/core/StarAlgorithm.hpp:334–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333template <typename Container1, typename Container2>
334bool containersEqual(Container1 const& cont1, Container2 const& cont2) {
335 if (cont1.size() != cont2.size())
336 return false;
337 else
338 return std::equal(cont1.begin(), cont1.end(), cont2.begin());
339}
340
341// Wraps a unary function to produce an output iterator
342template <typename UnaryFunction>

Callers 1

updateAllEntitiesMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected