userver: userver/formats/common/conversion_stack.hpp File Reference
Loading...
Searching...
No Matches
conversion_stack.hpp File Reference

Detailed Description

Used in the implementation of functions that convert between different formats, e.g. formats::yaml::Value to formats::json::Value, etc.

Definition in file conversion_stack.hpp.

Go to the source code of this file.

#include <cstdint>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>
#include <fmt/format.h>
#include <boost/container/small_vector.hpp>
#include <userver/compiler/demangle.hpp>
#include <userver/formats/common/type.hpp>
#include <userver/utils/assert.hpp>
+ Include dependency graph for conversion_stack.hpp:

Classes

class  formats::common::ConversionStack< ValueFrom, ValueToBuilder >
 Used in the implementation of functions that convert between different formats, e.g. formats::yaml::Value to formats::json::Value, etc. More...
 

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::common
 Common utilities for all the formats.
 

Functions

template<typename ValueTo , typename ValueFrom >
ValueTo formats::common::PerformMinimalFormatConversion (ValueFrom &&value)
 Performs the conversion between different formats. Only supports basic formats node types, throws on any non-standard ones.