xtd 0.2.0
day_of_week.h
Go to the documentation of this file.
1 #pragma once
5 #include "enum.h"
6 
8 namespace xtd {
23  enum class day_of_week {
25  sunday,
27  monday,
29  tuesday,
31  wednesday,
33  thursday,
35  friday,
37  saturday
38  };
39 }
40 
42 template<> struct xtd::enum_register<xtd::day_of_week> {
43  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::day_of_week> {{xtd::day_of_week::sunday, "sunday"}, {xtd::day_of_week::monday, "monday"}, {xtd::day_of_week::tuesday, "tuesday"}, {xtd::day_of_week::wednesday, "wednesday"}, {xtd::day_of_week::thursday, "thursday"}, {xtd::day_of_week::friday, "friday"}, {xtd::day_of_week::saturday, "saturday"}};}
44 };
Indicates sunday.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Indicates thursday.
Indicates monday.
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
day_of_week
Specifies the day of the week.
Definition: day_of_week.h:23
Contains enum_ and enum_ut_ keywords.
Indicates friday.
Indicates wednesday.
Indicates tuesday.
Indicates saturday.
Provides the registration struct for enumerations.
Definition: enum_register.h:36