userver: userver/formats/bson/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 <chrono>
#include <userver/formats/bson/value_builder.hpp>
+ 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 bson::Value formats::serialize::Serialize (std::chrono::duration< Rep, Period > duration, To< formats::bson::Value >)