34template <
typename ElementComparator>
40 template <
typename Type>
41 bool operator() (Type a, Type b) {
return comparator.compareElements (a, b) < 0; }
80template <
class ElementType,
class ElementComparator>
82 ElementType*
const array,
125template <
class ElementType,
class ElementComparator>
127 ElementType*
const array,
183template <
class ElementType>
187 using ParameterType =
typename TypeHelpers::ParameterType<ElementType>::type;
190 static int compareElements (ParameterType first, ParameterType second)
192 return (first < second) ? -1 : ((second < first) ? 1 : 0);
A simple ElementComparator class that can be used to sort an array of objects that support the '<' op...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...