userver: userver/formats/serialize/write_to_stream.hpp File Reference
Loading...
Searching...
No Matches
write_to_stream.hpp File Reference

Detailed Description

Common WriteToStream functions for SAX serializers.

Definition in file write_to_stream.hpp.

Go to the source code of this file.

#include <map>
#include <optional>
#include <type_traits>
#include <unordered_map>
#include <variant>
#include <userver/utils/meta.hpp>
#include <userver/formats/common/meta.hpp>
+ Include dependency graph for write_to_stream.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  formats::serialize::SaxStream
 

Namespaces

namespace  utils
 Utilities.
 
namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::serialize
 Common serializers.
 

Functions

template<typename... Types, typename StringBuilder >
void formats::serialize::WriteToStream (const std::variant< Types... > &value, StringBuilder &sw)
 Variant serialization.
 
template<typename T , typename StringBuilder >
void formats::serialize::WriteToStream (const std::optional< T > &value, StringBuilder &sw)
 std::optional serialization
 
template<typename T , typename StringBuilder >
std::enable_if_t< !std::is_arithmetic_v< T > &&!std::is_convertible_v< T &, utils::impl::strong_typedef::StrongTypedefTag & > > formats::serialize::WriteToStream (const T &value, StringBuilder &sw)