userver: userver/formats/parse/boost_variant.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
boost_variant.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Ineffective but generic parser for boost::variant type.

Parsing is performed for each of the N alternatives in variant, N-1 exceptions is thrown and caught during the parsing.

Definition in file boost_variant.hpp.

Go to the source code of this file.

#include <boost/variant/variant.hpp>
#include <userver/compiler/demangle.hpp>
#include <userver/formats/parse/variant.hpp>

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::parse
 Generic parsers and converters.
 

Functions

template<class Value, typename... Types>
boost::variant< Types... > formats::parse::Parse (const Value &value, formats::parse::To< boost::variant< Types... > >)