MCPcopy Create free account
hub / github.com/MyGUI/mygui / swapSortItemsAt

Method swapSortItemsAt

UnitTests/UnitTest_MultiList/BiIndexData.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void BiIndexData::swapSortItemsAt(size_t _index1, size_t _index2)
52 {
53 MYGUI_ASSERT_RANGE(_index1, mItemsInfo.size(), "BiIndexData::swapSortItemsAt");
54 MYGUI_ASSERT_RANGE(_index2, mItemsInfo.size(), "BiIndexData::swapSortItemsAt");
55
56 BiIndexBase::swapItemsBackAt(_index1, _index2);
57 std::swap(mItemsInfo[_index1], mItemsInfo[_index2]);
58 }
59
60} // namespace unittest

Callers

nothing calls this directly

Calls 2

swapFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected