Home
last modified time | relevance | path

Searched refs:weekday_indexed (Results 1 – 25 of 34) sorted by relevance

12

/external/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/
Dcomparisons.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
31 AssertComparisons2AreNoexcept<weekday_indexed>(); in main()
32 AssertComparisons2ReturnBool<weekday_indexed>(); in main()
34 static_assert( (weekday_indexed{} == weekday_indexed{}), ""); in main()
35 static_assert(!(weekday_indexed{} != weekday_indexed{}), ""); in main()
37 static_assert(!(weekday_indexed{} == weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
38 static_assert( (weekday_indexed{} != weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
41 static_assert( (weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 2}), ""); in main()
42 static_assert(!(weekday_indexed{weekday{1}, 2} != weekday_indexed{weekday{1}, 2}), ""); in main()
44 static_assert(!(weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 1}), ""); in main()
[all …]
Dstreaming.pass.cpp32 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 std::cout << weekday_indexed{weekday{3}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp30 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
43 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
49 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
54 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
55 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
60 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
61 year_month_weekday{year{1235}, January, weekday_indexed{Tuesday, 1}}, in main()
67 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
Dminus.pass.cpp31 …kday ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::weekday_indexed{std::chrono::… in testConstexprYears()
43 …day ym0{std::chrono::year{1234}, std::chrono::November, std::chrono::weekday_indexed{std::chrono::… in testConstexprMonths()
59 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
73 year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 1}}; in main()
90 year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 2}}; in main()
Dplus.pass.cpp60 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
75 …static_assert(testConstexprMonths(year_month_weekday{year{1}, January, weekday_indexed{Tuesday, 1}… in main()
77 year_month_weekday ym{year{1234}, January, weekday_indexed{Tuesday, 3}}; in main()
101 …static_assert(testConstexprYears (year_month_weekday{year{1}, January, weekday_indexed{Tuesday, 1}… in main()
103 year_month_weekday ym{year{1234}, std::chrono::January, weekday_indexed{Tuesday, 3}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/
Dcomparisons.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
39 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
40 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
44 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
45 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
49 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
50 month_weekday{std::chrono::February, weekday_indexed{Sunday, 1}}, in main()
54 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
55 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
59 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
[all …]
Dstreaming.pass.cpp32 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 std::cout << month_weekday{month{1}, weekday_indexed{weekday{3}, 3}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dweekday_indexed.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
31 …RT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexed()); in main()
32 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const year_month_weekday>().weekday_indexe… in main()
34 static_assert( year_month_weekday{}.weekday_indexed() == weekday_indexed{}, ""); in main()
38 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
39 assert( static_cast<unsigned>(ymwd0.weekday_indexed().weekday()) == i); in main()
40 assert( static_cast<unsigned>(ymwd0.weekday_indexed().index()) == 1); in main()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
42 assert( static_cast<unsigned>(ymwd1.weekday_indexed().weekday()) == 2); in main()
43 assert( static_cast<unsigned>(ymwd1.weekday_indexed().index()) == i); in main()
Dok.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
39 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
41 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
42 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
43 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
45 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
46 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
47 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main()
49 …static_assert( year_month_weekday{year{2019}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
53 year_month_weekday ym{year{2019}, January, weekday_indexed{Tuesday, i}}; in main()
[all …]
Dctor.sys_days.pass.cpp37 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
51 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main()
64 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Wednesday, 1}, ""); in main()
78 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Tuesday, 1}, ""); in main()
91 assert((ymwd.weekday_indexed() == weekday_indexed{std::chrono::Wednesday, 5})); in main()
Dctor.local_days.pass.cpp38 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
52 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main()
65 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Wednesday, 1}, ""); in main()
79 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Tuesday, 1}, ""); in main()
92 assert((ymwd.weekday_indexed() == weekday_indexed{std::chrono::Wednesday, 5})); in main()
Dctor.pass.cpp39 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
46 ASSERT_NOEXCEPT(year_month_weekday{year{1}, month{1}, weekday_indexed{Tuesday, 1}}); in main()
53 static_assert( ym0.weekday_indexed() == weekday_indexed{}, ""); in main()
56 constexpr year_month_weekday ym1{year{2019}, January, weekday_indexed{Tuesday, 1}}; in main()
61 static_assert( ym1.weekday_indexed() == weekday_indexed{Tuesday, 1}, ""); in main()
Dop.sys_days.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
Dop.local_days.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/
Dweekday_indexed.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
32 … ASSERT_NOEXCEPT( std::declval<const month_weekday>().weekday_indexed()); in main()
33 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const month_weekday>().weekday_indexed())); in main()
35 …static_assert( month_weekday{month{}, weekday_indexed{}}.weekday_indexed() == weekday_indexed{}, "… in main()
39 month_weekday md(std::chrono::March, weekday_indexed{Sunday, i}); in main()
40 assert( static_cast<unsigned>(md.weekday_indexed().weekday() == Sunday)); in main()
41 assert( static_cast<unsigned>(md.weekday_indexed().index() == i)); in main()
Dctor.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 ASSERT_NOEXCEPT(month_weekday{month{1}, weekday_indexed{weekday{}, 1}}); in main()
37 constexpr month_weekday md0{month{}, weekday_indexed{}}; in main()
39 static_assert( md0.weekday_indexed() == weekday_indexed{}, ""); in main()
42 constexpr month_weekday md1{std::chrono::January, weekday_indexed{std::chrono::Friday, 4}}; in main()
44 static_assert( md1.weekday_indexed() == weekday_indexed{std::chrono::Friday, 4}, ""); in main()
Dok.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 static_assert(!month_weekday{month{}, weekday_indexed{}}.ok(), ""); in main()
36 static_assert( month_weekday{std::chrono::May, weekday_indexed{Sunday, 2}}.ok(), ""); in main()
38 assert(!(month_weekday(std::chrono::April, weekday_indexed{Sunday, 0}).ok())); in main()
39 assert( (month_weekday{std::chrono::March, weekday_indexed{Sunday, 1}}.ok())); in main()
44 month_weekday mwd{month{i}, weekday_indexed{Sunday, j}}; in main()
50 assert(!(month_weekday{month{13}, weekday_indexed{Sunday, i}}.ok())); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/
Dok.pass.cpp26 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().ok()); in main()
29 ASSERT_SAME_TYPE(bool, decltype(std::declval<const weekday_indexed>().ok())); in main()
31 static_assert(!weekday_indexed{}.ok(), ""); in main()
32 static_assert( weekday_indexed{std::chrono::Sunday, 2}.ok(), ""); in main()
34 assert(!(weekday_indexed(std::chrono::Tuesday, 0).ok())); in main()
37 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
43 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
48 assert(!(weekday_indexed(weekday{9U}, 1).ok())); in main()
Dctor.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 ASSERT_NOEXCEPT(weekday_indexed{}); in main()
36 ASSERT_NOEXCEPT(weekday_indexed(weekday{1}, 1)); in main()
38 constexpr weekday_indexed wdi0{}; in main()
43 constexpr weekday_indexed wdi1{std::chrono::Sunday, 2}; in main()
50 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
58 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
Dweekday.pass.cpp26 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
28 … ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().weekday()); in main()
29 … ASSERT_SAME_TYPE(std::chrono::weekday, decltype(std::declval<const weekday_indexed>().weekday())); in main()
31 static_assert( weekday_indexed{}.weekday() == weekday{}, ""); in main()
32 static_assert( weekday_indexed{std::chrono::Tuesday, 0}.weekday() == std::chrono::Tuesday, ""); in main()
36 weekday_indexed wdi(weekday{i}, 2); in main()
Dindex.pass.cpp26 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().index()); in main()
29 ASSERT_SAME_TYPE(unsigned, decltype(std::declval<const weekday_indexed>().index())); in main()
31 static_assert( weekday_indexed{}.index() == 0, ""); in main()
35 weekday_indexed wdi(weekday{2}, i); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dmonth_weekday.pass.cpp53 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
68 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
76 weekday_indexed wdi = weekday{j}[k]; in main()
80 assert(mwd1.weekday_indexed() == wdi); in main()
82 assert(mwd2.weekday_indexed() == wdi); in main()
98 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
105 weekday_indexed wdi = weekday{j}[k]; in main()
109 assert(mwd1.weekday_indexed() == wdi); in main()
111 assert(mwd2.weekday_indexed() == wdi); in main()
Dyear_month_weekday.pass.cpp50 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
59 ASSERT_NOEXCEPT ( Feb2018/weekday_indexed{Tuesday, 2}); in main()
60 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb2018/weekday_indexed{Tuesday, 2})); in main()
62 static_assert((Feb2018/weekday_indexed{Tuesday, 2}).year() == year{2018}, "" ); in main()
63 static_assert((Feb2018/weekday_indexed{Tuesday, 2}).month() == February, "" ); in main()
64 static_assert((Feb2018/weekday_indexed{Tuesday, 2}).weekday() == Tuesday, "" ); in main()
74 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
82 constexpr month_weekday Feb1stTues{February, weekday_indexed{Tuesday, 1}}; in main()
100 month_weekday mwd{m, weekday_indexed{weekday{k}, l}}; in main()
115 constexpr month_weekday Feb1stTues{February, weekday_indexed{Tuesday, 1}}; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/
Dtypes.pass.cpp22 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
24 static_assert(std::is_trivially_copyable_v<weekday_indexed>, ""); in main()
25 static_assert(std::is_standard_layout_v<weekday_indexed>, ""); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Doperator[].pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
34 ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<weekday>()[1U])); in main()
54 weekday_indexed wdi = wd[j]; in main()

12