Scarab  v2.1.0
Project 8 C++ Utility Library
Public Member Functions | Private Attributes | List of all members
year_month Class Reference

#include <date.h>

Public Member Functions

 year_month ()=default
 
constexpr year_month (const date::year &y, const date::month &m) noexcept
 
constexpr date::year year () const noexcept
 
constexpr date::month month () const noexcept
 
year_monthoperator+= (const months &dm) noexcept
 
year_monthoperator-= (const months &dm) noexcept
 
year_monthoperator+= (const years &dy) noexcept
 
year_monthoperator-= (const years &dy) noexcept
 
constexpr bool ok () const noexcept
 

Private Attributes

date::year y_
 
date::month m_
 

Detailed Description

Definition at line 495 of file date.h.

Constructor & Destructor Documentation

year_month ( )
default
constexpr year_month ( const date::year y,
const date::month m 
)
inlinenoexcept

Definition at line 1971 of file date.h.

Member Function Documentation

constexpr month month ( ) const
inlinenoexcept

Definition at line 1977 of file date.h.

constexpr bool ok ( ) const
inlinenoexcept

Definition at line 1978 of file date.h.

year_month & operator+= ( const months dm)
inlinenoexcept

Definition at line 1983 of file date.h.

year_month & operator+= ( const years dy)
inlinenoexcept

Definition at line 2001 of file date.h.

year_month & operator-= ( const months dm)
inlinenoexcept

Definition at line 1992 of file date.h.

year_month & operator-= ( const years dy)
inlinenoexcept

Definition at line 2010 of file date.h.

constexpr year year ( ) const
inlinenoexcept

Definition at line 1976 of file date.h.

Member Data Documentation

date::month m_
private

Definition at line 498 of file date.h.

date::year y_
private

Definition at line 497 of file date.h.


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