template<typename Byte, size_t N>
class ecl::formatters::BytePushAndPopFormatter< Byte, N >
Parent template for the byte push and pop formatters.
We dont accept arguments for this class, it is simply designed to present byte arrays in hex format byte by byte. If you want specialised formatting, iterate over it with the Format<char> (or signed/unsigned char) class.
Do not use this class directly, rather call it via either the PushAndPop or Format classes explicitly. This makes the code more readable. e.g.
Format< PushAndPop<unsigned char,4> > format_array_2;
- Template Parameters
-
Byte | : byte type, signed char/char/unsigned char. |
N | : the size of the container to be formatted. |
Definition at line 118 of file push_and_pop/formatters.hpp.
template<typename Byte , size_t N>
template<typename OutputStream , typename CharType , size_t M>
Insertion operator for sending the formatter (for character arrays) to an output stream.
- Template Parameters
-
OutputStream | : the type of the output stream to be inserted into. |
M | : the size of the container to be formatted. |
- Parameters
-
ostream | : the output stream. |
formatter | : the formatter to be inserted. |
- Returns
- OutputStream : continue streaming with the updated output stream.
- Exceptions
-
StandardException | : throws if the formatter is used multiply in one stream operation [debug mode only]. |
Definition at line 169 of file push_and_pop/formatters.hpp.