MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Reverse

Method Reverse

lib/base/array.cpp:266–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266Array::Ptr Array::Reverse() const
267{
268 Array::Ptr result = new Array();
269
270 ObjectLock olock(this);
271 ObjectLock xlock(result);
272
273 std::copy(m_Data.rbegin(), m_Data.rend(), std::back_inserter(result->m_Data));
274
275 return result;
276}
277
278void Array::Sort()
279{

Callers 2

ArrayReverseFunction · 0.45
StringReverseFunction · 0.45

Calls 1

rendMethod · 0.80

Tested by

no test coverage detected