MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / invert_container

Function invert_container

dep/agg/include/agg_array.h:1217–1225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1215 //--------------------------------------------------------invert_container
1216 template <class Array>
1217 void invert_container(Array& arr)
1218 {
1219 int i = 0;
1220 int j = arr.size() - 1;
1221 while (i < j)
1222 {
1223 swap_elements(arr[i++], arr[j--]);
1224 }
1225 }
1226
1227 //------------------------------------------------------binary_search_pos
1228 template <class Array, class Value, class Less>

Callers

nothing calls this directly

Calls 2

swap_elementsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected