Is there a simple way to manipulate std::cout so that it prints doubles in their hex representation? In other words, something equivalent to:
printf("%" PRIx64, *reinterpret_cast<uint64_t *>(&my_double));
To provide some context, I have a program which prints hundreds of floating-point results and I was wondering if there is that magical one-line hack that can print all of them in hex.