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]

year ( int y)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ is_leap()

auto is_leap ( ) const -> bool
inlinenodiscardconstexprnoexcept

◆ max()

constexpr auto max ( ) -> year
inlinestaticnodiscardconstexprnoexcept

◆ min()

constexpr auto min ( ) -> year
inlinestaticnodiscardconstexprnoexcept

◆ ok()

auto ok ( ) const -> bool
inlinenodiscardconstexprnoexcept

◆ operator int()

operator int ( ) const
inlineexplicitnodiscardconstexprnoexcept

◆ operator+()

auto operator+ ( ) const -> year
inlinenodiscardconstexprnoexcept

◆ operator++() [1/2]

auto operator++ ( ) -> year&
inlineconstexprnoexcept

◆ operator++() [2/2]

auto operator++ ( int ) -> year
inlineconstexprnoexcept

◆ operator+=()

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

◆ operator-()

auto operator- ( ) const -> year
inlinenodiscardconstexprnoexcept

◆ operator--() [1/2]

auto operator-- ( ) -> year&
inlineconstexprnoexcept

◆ operator--() [2/2]

auto operator-- ( int ) -> year
inlineconstexprnoexcept

◆ operator-=()

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

Friends And Related Symbol Documentation

◆ operator<

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

◆ operator<=

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

◆ operator==

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

◆ operator>

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

◆ operator>=

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

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