Speclib  0.1.2
The library for writing better CUDA libraries
sp::DefaultKeyFunctor Struct Reference

The default KeyFunctor used for radix sorts. More...

#include <Radix.hpp>

Public Member Functions

template<typename T >
auto operator() (const T &value)
 

Detailed Description

The default KeyFunctor used for radix sorts.

This will correctly handle fundamental numeric types (including floating point!)

Other types require the user to implement a similar KeyFunctor type to map their type to an integer.

See also
radixSort()