userver: userver/formats/serialize/variant.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
variant.hpp File Reference

Detailed Description

Serializers for std::variant.

Definition in file variant.hpp.

Go to the source code of this file.

#include <variant>
#include <userver/formats/serialize/to.hpp>
+ Include dependency graph for variant.hpp:
+ This graph shows which files directly or indirectly include this file:

Namespaces

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

Functions

template<typename Value , typename... Types>
Value formats::serialize::Serialize (const std::variant< Types... > &value, To< Value >)