real policy for imaginary part
More...
#include <float_policy.hpp>
|
typedef
boost::spirit::karma::real_policies
< T > | base_type |
| policy to parse the base type More...
|
|
|
static int | floatfield (T) |
| use scientific format by default More...
|
|
static int | precision (T) |
| always use maximum precision of required More...
|
|
template<typename OITER > |
static bool | integer_part (OITER &sink, T n, bool sign, bool) |
| add sign and I in front of the output More...
|
|
template<typename T>
struct pni::io::imag_policy< T >
This is a special policy for real numbers representing the imaginary part of a complex number. It shares all the properties of the default float_policy but adds the sign in front of the integer part and separates the sign by an 'I' from the residual floating point number.
- Template Parameters
-
template<typename T >
template<typename OITER >
Adds the leading sign and the I
to the output.
- Template Parameters
-
OITER | output iterator type |
- Parameters
-
sink | output iterator |
n | number |
sign | true if a sign is set |
- Returns
- true if writting the output was successful, false otherwise
The documentation for this struct was generated from the following file: