userver: storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > > Struct Template Reference
Loading...
Searching...
No Matches
storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > > Struct Template Reference

#include <userver/storages/postgres/io/chrono.hpp>

Detailed Description

template<typename Duration>
struct storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > >

Binary formatter for std::chrono::time_point.

Definition at line 90 of file chrono.hpp.

Public Types

using ValueType = std::chrono::time_point<ClockType, Duration>
 

Public Member Functions

 BufferFormatter (ValueType val)
 
template<typename Buffer >
void operator() (const UserTypes &types, Buffer &buf) const
 

Public Attributes

const ValueType value
 

Member Typedef Documentation

◆ ValueType

template<typename Duration >
using storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > >::ValueType = std::chrono::time_point<ClockType, Duration>

Definition at line 91 of file chrono.hpp.

Constructor & Destructor Documentation

◆ BufferFormatter()

template<typename Duration >
storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > >::BufferFormatter ( ValueType val)
inlineexplicit

Definition at line 95 of file chrono.hpp.

Member Function Documentation

◆ operator()()

template<typename Duration >
template<typename Buffer >
void storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > >::operator() ( const UserTypes & types,
Buffer & buf ) const
inline

Definition at line 98 of file chrono.hpp.

Member Data Documentation

◆ value

template<typename Duration >
const ValueType storages::postgres::io::BufferFormatter< std::chrono::time_point< ClockType, Duration > >::value

Definition at line 93 of file chrono.hpp.


The documentation for this struct was generated from the following file: