xtd 0.2.0
Loading...
Searching...
No Matches
day_of_week.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "enum.hpp"
6
8namespace xtd {
25 enum class day_of_week {
27 sunday,
29 monday,
31 tuesday,
37 friday,
40 };
41}
42
44template<> struct xtd::enum_register<xtd::day_of_week> {
45 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"}};}
46};
Contains enum_ and enum_ut_ keywords.
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
day_of_week
Specifies the day of the week.
Definition day_of_week.hpp:25
@ 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.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38