userver: userver/formats/json/serialize_duration.hpp File Reference
Loading...
Searching...
No Matches
serialize_duration.hpp File Reference

Detailed Description

Serializers for std::chrono::duration types.

Definition in file serialize_duration.hpp.

Go to the source code of this file.

+ Include dependency graph for serialize_duration.hpp:

Namespaces

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

Functions

template<class Rep , class Period >
static json::Value formats::serialize::Serialize (std::chrono::duration< Rep, Period > duration, To< formats::json::Value >)
 
template<class Rep , class Period >
static void formats::serialize::WriteToStream (std::chrono::duration< Rep, Period > duration, formats::json::StringBuilder &sw)