Classes | Namespaces | Functions
hexfloat.h File Reference

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)
 

Detailed Description

Helper to support output of real numbers in base 16.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
April 29, 2016
Note
This is going to be obsolete and deprecated as soon as GCC supports std::hexfloat from C++ standard (gcc 5.1).
The manipulator 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.