Scarab  v2.2.0
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | Friends | List of all members
decimal_format_seconds< Duration, 0 > Class Template Reference

#include <date.h>

Public Types

using rep = typename std::common_type< Duration, std::chrono::seconds >::type::rep
 
using precision = std::chrono::duration< rep >
 

Public Member Functions

constexpr decimal_format_seconds ()
 
constexpr decimal_format_seconds (const precision &s) noexcept
 
std::chrono::seconds & seconds () noexcept
 
constexpr std::chrono::seconds seconds () const noexcept
 
precision to_duration () const noexcept
 
constexpr bool in_conventional_range () const noexcept
 

Static Public Attributes

static auto constexpr const width = make_precision<rep, w>::width
 

Private Attributes

std::chrono::seconds s_
 

Static Private Attributes

static constexpr const unsigned w = 0
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const decimal_format_seconds &x)
 

Detailed Description

template<class Duration>
class date::detail::decimal_format_seconds< Duration, 0 >

Definition at line 3681 of file date.h.

Member Typedef Documentation

using precision = std::chrono::duration<rep>

Definition at line 3686 of file date.h.

using rep = typename std::common_type<Duration, std::chrono::seconds>::type::rep

Definition at line 3685 of file date.h.

Constructor & Destructor Documentation

constexpr decimal_format_seconds ( )
inline

Definition at line 3693 of file date.h.

constexpr decimal_format_seconds ( const precision s)
inlineexplicitnoexcept

Definition at line 3694 of file date.h.

Member Function Documentation

constexpr bool in_conventional_range ( ) const
inlinenoexcept

Definition at line 3702 of file date.h.

std::chrono::seconds& seconds ( )
inlinenoexcept

Definition at line 3698 of file date.h.

constexpr std::chrono::seconds seconds ( ) const
inlinenoexcept

Definition at line 3699 of file date.h.

precision to_duration ( ) const
inlinenoexcept

Definition at line 3700 of file date.h.

Friends And Related Function Documentation

std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const decimal_format_seconds< Duration, 0 > &  x 
)
friend

Definition at line 3711 of file date.h.

Member Data Documentation

std::chrono::seconds s_
private

Definition at line 3690 of file date.h.

constexpr const unsigned w = 0
staticprivate

Definition at line 3683 of file date.h.

auto constexpr const width = make_precision<rep, w>::width
static

Definition at line 3687 of file date.h.


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