Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Time::DayOfMonth Struct Reference

Simple wrapper on std::chrono::day, with some helpful validation properties (assures constructed 'ok'). But not necessary to use - use just 'day' in most places. More...

#include <Date.h>

Inherits day.

Public Member Functions

constexpr DayOfMonth (day d, DataExchange::ValidationStrategy validationStrategy=DataExchange::ValidationStrategy::eAssertion)
 

Detailed Description

Simple wrapper on std::chrono::day, with some helpful validation properties (assures constructed 'ok'). But not necessary to use - use just 'day' in most places.

Note
- DayOfMonth was an enum in Stroika v2.1, so this is a significant change.
DayOfMonth can be converted from/to unsigned int.
You can use the suffix 'd' instead of DayOfMonth{n}
not [[nodiscard]] cuz can use CTOR just for quiet validation

Definition at line 163 of file Date.h.

Constructor & Destructor Documentation

◆ DayOfMonth()

constexpr Stroika::Foundation::Time::DayOfMonth::DayOfMonth ( day  d,
DataExchange::ValidationStrategy  validationStrategy = DataExchange::ValidationStrategy::eAssertion 
)
constexpr

For the purpose of integer constructors, 1==1st, 2==2nd, and so on (no zero)

Definition at line 73 of file Date.inl.


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