Helper to support output of real numbers in base 16. More...
#include <utility>
#include <type_traits>
#include <cstdio>
#include <iosfwd>
Go to the source code of this file.
Classes | |
struct | lar::details::OptionalHexFloatFormatter< T > |
class | lar::OptionalHexFloat |
Helper for formatting floats in base 16. More... | |
Namespaces | |
lar | |
LArSoft-specific namespace. | |
lar::details | |
Namespace hiding implementation details. | |
Functions | |
template<typename T > | |
std::ostream & | lar::details::operator<< (std::ostream &os, details::OptionalHexFloatFormatter< T > fmt) |
Helper to support output of real numbers in base 16.
std::hexfloat
from C++ standard (gcc 5.1).lar::hexfloat
is not equivalent to std::hexfloat
in that the former takes one argument and formats only that argument, while the second takes no argument and all the following floats are formatted in base 16. Definition in file hexfloat.h.