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

#include <year.hpp>

Public Member Functions

 year ()=default
 
constexpr year (int y) noexcept
 
constexpr auto is_leap () const noexcept -> bool
 
constexpr auto ok () const noexcept -> bool
 
constexpr operator int () const noexcept
 
constexpr auto operator+ () const noexcept -> year
 
constexpr auto operator++ () noexcept -> year &
 
constexpr auto operator++ (int) noexcept -> year
 
constexpr auto operator+= (years const &countS) noexcept -> year &
 
constexpr auto operator- () const noexcept -> year
 
constexpr auto operator-- () noexcept -> year &
 
constexpr auto operator-- (int) noexcept -> year
 
constexpr auto operator-= (years const &countS) noexcept -> year &
 

Static Public Member Functions

static constexpr auto max () noexcept -> year
 
static constexpr auto min () noexcept -> year
 

Friends

constexpr auto operator< (year lhs, year rhs) noexcept -> bool
 
constexpr auto operator<= (year lhs, year rhs) noexcept -> bool
 
constexpr auto operator== (year lhs, year rhs) noexcept -> bool
 
constexpr auto operator> (year lhs, year rhs) noexcept -> bool
 
constexpr auto operator>= (year lhs, year rhs) noexcept -> bool
 

Constructor & Destructor Documentation

◆ year() [1/2]

year ( )
default

◆ year() [2/2]

constexpr year ( int  y)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ is_leap()

constexpr auto is_leap ( ) const -> bool
inlineconstexprnoexcept

◆ max()

static constexpr auto max ( ) -> year
inlinestaticconstexprnoexcept

◆ min()

static constexpr auto min ( ) -> year
inlinestaticconstexprnoexcept

◆ ok()

constexpr auto ok ( ) const -> bool
inlineconstexprnoexcept

◆ operator int()

constexpr operator int ( ) const
inlineexplicitconstexprnoexcept

◆ operator+()

constexpr auto operator+ ( ) const -> year
inlineconstexprnoexcept

◆ operator++() [1/2]

constexpr auto operator++ ( ) -> year&
inlineconstexprnoexcept

◆ operator++() [2/2]

constexpr auto operator++ ( int  ) -> year
inlineconstexprnoexcept

◆ operator+=()

constexpr auto operator+= ( years const countS) -> year&
inlineconstexprnoexcept

◆ operator-()

constexpr auto operator- ( ) const -> year
inlineconstexprnoexcept

◆ operator--() [1/2]

constexpr auto operator-- ( ) -> year&
inlineconstexprnoexcept

◆ operator--() [2/2]

constexpr auto operator-- ( int  ) -> year
inlineconstexprnoexcept

◆ operator-=()

constexpr auto operator-= ( years const countS) -> year&
inlineconstexprnoexcept

Friends And Related Symbol Documentation

◆ operator<

constexpr auto operator< ( year  lhs,
year  rhs 
) -> bool
friend

◆ operator<=

constexpr auto operator<= ( year  lhs,
year  rhs 
) -> bool
friend

◆ operator==

constexpr auto operator== ( year  lhs,
year  rhs 
) -> bool
friend

◆ operator>

constexpr auto operator> ( year  lhs,
year  rhs 
) -> bool
friend

◆ operator>=

constexpr auto operator>= ( year  lhs,
year  rhs 
) -> bool
friend

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