T-SIMD v31.1.0
A C++ template SIMD library
Loading...
Searching...
No Matches
simd::Format< T > Struct Template Reference

Class for generating format strings for printf for SIMD types. More...

Detailed Description

template<typename T>
struct simd::Format< T >

Class for generating format strings for printf for SIMD types.

Template Parameters
Ttype for which to generate a format string

Public Member Functions

 Format (int fieldWidth=-1, int precision=-1)
 Constructor.
 

Public Attributes

char format [256]
 The generated format string.
 

Constructor & Destructor Documentation

◆ Format()

template<typename T >
simd::Format< T >::Format ( int fieldWidth = -1,
int precision = -1 )
inline

Constructor.

Parameters
fieldWidthfield width (e.g. 4 for "%4d")
precisionprecision (e.g. 2 for "%.2f")