VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::format::FormatToNResult< OutputItT > Struct Template Reference

Result type for format_to_n, carrying the output pointer, written size and truncation flag. More...

#include <format.h>

Collaboration diagram for vlink::format::FormatToNResult< OutputItT >:

Public Attributes

OutputItT out
 Pointer/iterator one past the last written character.
size_t size {0}
 Total number of characters that would have been written (may exceed n).
bool truncated {false}
 true if the output was truncated because size > n.

Detailed Description

template<typename OutputItT>
struct vlink::format::FormatToNResult< OutputItT >

Result type for format_to_n, carrying the output pointer, written size and truncation flag.

Template Parameters
OutputItTOutput iterator or pointer type.

Member Data Documentation

◆ out

template<typename OutputItT>
OutputItT vlink::format::FormatToNResult< OutputItT >::out

Pointer/iterator one past the last written character.

◆ size

template<typename OutputItT>
size_t vlink::format::FormatToNResult< OutputItT >::size {0}

Total number of characters that would have been written (may exceed n).

◆ truncated

template<typename OutputItT>
bool vlink::format::FormatToNResult< OutputItT >::truncated {false}

true if the output was truncated because size > n.


The documentation for this struct was generated from the following file: