template <typename T>
struct Formatted
Defined at line 36 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/natural_ostream.h
Wrapper type to disambiguate formatting operator overloads.
This file avoids defining any overloads for types in the std namespace. To
correctly format arrays and vectors, this wrapper is used so we can define an
overload for e.g. fidl::ostream::Formatted
<std
::vector
<T
>> instead of
defining one for std::vector
<T
>. Consequently, this wrapper must be used for
the supported std types. The wrapper has no effect for other types, so it can
safely be applied to any value.
std::vector
<int32
_t> my_vector;
os
<
<
fidl::ostream::Formatted(my_vector);
Public Members
const T & value
Public Methods
void Formatted<T> (const T & v)
Defined at line 37 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/natural_ostream.h