...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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);