Scarab  v3.5.1
Project 8 C++ Utility Library
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
year Class Reference

#include <date.h>

Public Member Functions

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

Static Public Member Functions

static constexpr year min () noexcept
 
static constexpr year max () noexcept
 

Private Attributes

short y_
 

Detailed Description

Definition at line 365 of file date.h.

Constructor & Destructor Documentation

◆ year() [1/2]

year ( )
default

◆ year() [2/2]

constexpr year ( int  y)
inlineexplicitnoexcept

Definition at line 1529 of file date.h.

Member Function Documentation

◆ is_leap()

constexpr bool is_leap ( ) const
inlinenoexcept

Definition at line 1542 of file date.h.

◆ max()

constexpr year max ( )
inlinestaticnoexcept

Definition at line 1568 of file date.h.

◆ min()

constexpr year min ( )
inlinestaticnoexcept

Definition at line 1560 of file date.h.

◆ ok()

constexpr bool ok ( ) const
inlinenoexcept

Definition at line 1552 of file date.h.

◆ operator int()

constexpr operator int ( ) const
inlineexplicitnoexcept

Definition at line 1547 of file date.h.

◆ operator+()

constexpr year operator+ ( ) const
inlinenoexcept

Definition at line 1537 of file date.h.

◆ operator++() [1/2]

year & operator++ ( )
inlinenoexcept

Definition at line 1530 of file date.h.

◆ operator++() [2/2]

year operator++ ( int  )
inlinenoexcept

Definition at line 1531 of file date.h.

◆ operator+=()

year & operator+= ( const years y)
inlinenoexcept

Definition at line 1534 of file date.h.

◆ operator-()

constexpr year operator- ( ) const
inlinenoexcept

Definition at line 1536 of file date.h.

◆ operator--() [1/2]

year & operator-- ( )
inlinenoexcept

Definition at line 1532 of file date.h.

◆ operator--() [2/2]

year operator-- ( int  )
inlinenoexcept

Definition at line 1533 of file date.h.

◆ operator-=()

year & operator-= ( const years y)
inlinenoexcept

Definition at line 1535 of file date.h.

Member Data Documentation

◆ y_

short y_
private

Definition at line 367 of file date.h.


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