tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
weekday Struct Reference

#include <weekday.hpp>

Public Member Functions

 weekday ()=default
 
constexpr weekday (local_days const &dp) noexcept
 
constexpr weekday (sys_days const &dp) noexcept
 
constexpr weekday (unsigned wd) noexcept
 
constexpr auto c_encoding () const noexcept -> unsigned
 
constexpr auto iso_encoding () const noexcept -> unsigned
 
constexpr auto ok () const noexcept -> bool
 
constexpr auto operator++ () noexcept -> weekday &
 
constexpr auto operator++ (int) noexcept -> weekday
 
constexpr auto operator+= (days const &d) noexcept -> weekday &
 
constexpr auto operator-- () noexcept -> weekday &
 
constexpr auto operator-- (int) noexcept -> weekday
 
constexpr auto operator-= (days const &d) noexcept -> weekday &
 
constexpr auto operator[] (etl::chrono::last_spec) const noexcept -> weekday_last
 
constexpr auto operator[] (unsigned index) const noexcept -> weekday_indexed
 

Friends

constexpr auto operator== (weekday const &lhs, weekday const &rhs) noexcept -> bool
 

Constructor & Destructor Documentation

◆ weekday() [1/4]

weekday ( )
default

◆ weekday() [2/4]

weekday ( unsigned wd)
inlineexplicitconstexprnoexcept

◆ weekday() [3/4]

weekday ( sys_days const & dp)
inlineconstexprnoexcept

◆ weekday() [4/4]

weekday ( local_days const & dp)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ c_encoding()

auto c_encoding ( ) const -> unsigned
inlinenodiscardconstexprnoexcept

◆ iso_encoding()

auto iso_encoding ( ) const -> unsigned
inlinenodiscardconstexprnoexcept

◆ ok()

auto ok ( ) const -> bool
inlinenodiscardconstexprnoexcept

◆ operator++() [1/2]

auto operator++ ( ) -> weekday&
inlineconstexprnoexcept

◆ operator++() [2/2]

auto operator++ ( int ) -> weekday
inlineconstexprnoexcept

◆ operator+=()

auto operator+= ( days const & d) -> weekday&
inlineconstexprnoexcept

◆ operator--() [1/2]

auto operator-- ( ) -> weekday&
inlineconstexprnoexcept

◆ operator--() [2/2]

auto operator-- ( int ) -> weekday
inlineconstexprnoexcept

◆ operator-=()

auto operator-= ( days const & d) -> weekday&
inlineconstexprnoexcept

◆ operator[]() [1/2]

auto operator[] ( etl::chrono::last_spec ) const -> weekday_last
nodiscardconstexprnoexcept

◆ operator[]() [2/2]

auto operator[] ( unsigned index) const -> weekday_indexed
nodiscardconstexprnoexcept

Friends And Related Symbol Documentation

◆ operator==

auto operator== ( weekday const & lhs,
weekday const & rhs ) -> bool
friend

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