We have:
private void function(ptr* data, const int size_of_data){
std::sort(std::begin(data), std::end(data), floatcomparer);
Is this actually possible? Is there another way? Cause I get here an error: no instance of overloaded function ""std::begin" matches the argument types are: (float *).
I know that we need the size for a fast sorting algorithm like std uses and ptr* doesn't deliver an included size. But shouldn’t there be a way cause I know how big the array is I'm pointing on?