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

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

#include <Date.h>

Inherits weekday.

Public Member Functions

constexpr DayOfWeek (weekday w, DataExchange::ValidationStrategy validationStrategy=DataExchange::ValidationStrategy::eAssertion)
 

Detailed Description

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

Note
- DayOfWeek was an enum in Stroika v2.1, so this is a significant change.
DayOfWeek can be converted from/to unsigned int.
not [[nodiscard]] cuz can use CTOR just for quiet validation

Definition at line 105 of file Date.h.

Constructor & Destructor Documentation

◆ DayOfWeek()

constexpr Stroika::Foundation::Time::DayOfWeek::DayOfWeek ( weekday  w,
DataExchange::ValidationStrategy  validationStrategy = DataExchange::ValidationStrategy::eAssertion 
)
constexpr

For the purpose of integer constructors, 0==Sunday, 1==Monday, and so on

Definition at line 19 of file Date.inl.


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