xtd 0.2.0
Loading...
Searching...
No Matches
day_of_week.h
Go to the documentation of this file.
1
4#pragma once
5#include "enum.h"
6
8namespace xtd {
23 enum class day_of_week {
25 sunday,
27 monday,
29 tuesday,
35 friday,
38 };
39}
40
42template<> 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};
Contains enum_ and enum_ut_ keywords.
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
@ tuesday
Indicates tuesday.
@ saturday
Indicates saturday.
@ sunday
Indicates sunday.
@ monday
Indicates monday.
@ wednesday
Indicates wednesday.
@ thursday
Indicates thursday.
@ friday
Indicates friday.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36