MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / operator()

Method operator()

include/Array.h:879–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877 Sorter(SorterFunc inFunc) : mFunc(inFunc) { }
878
879 bool operator()(const ELEM_ &inA, const ELEM_ &inB)
880 {
881#if (HXCPP_API_LEVEL>=500)
882 return mFunc(inA, inB) < 0;
883#else
884 return mFunc( Dynamic(inA), Dynamic(inB))->__ToInt() < 0;
885#endif
886 }
887
888 SorterFunc mFunc;
889 };

Callers

nothing calls this directly

Calls 2

DynamicClass · 0.70
__ToIntMethod · 0.45

Tested by

no test coverage detected