![]() |
Home | Libraries | People | FAQ | More |
boost::sort::spreadsort::float_mem_cast — Casts a float to the specified integer type.
// In header: <boost/sort/spreadsort/float_sort.hpp> template<typename Data_type, typename Cast_type> Cast_type float_mem_cast(const Data_type & data);
Example:
struct rightshift { int operator()(const DATA_TYPE &x, const unsigned offset) const { return float_mem_cast<KEY_TYPE, CAST_TYPE>(x.key) >> offset; } };
Template Parameters: |
|