Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day_last.pass.cpp47 using month_day_last = std::chrono::month_day_last; in main() typedef
75 ASSERT_NOEXCEPT ( year{2018}/month_day_last{February}); in main()
76 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main()
77 ASSERT_NOEXCEPT ( month_day_last{February}/year{2018}); in main()
78 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main()
80 static_assert((year{2018}/month_day_last{February}).month() == February, ""); in main()
81 static_assert((year{2018}/month_day_last{February}).year() == year{2018}, ""); in main()
82 static_assert((month_day_last{February}/year{2018}).month() == February, ""); in main()
83 static_assert((month_day_last{February}/year{2018}).year() == year{2018}, ""); in main()
90 year_month_day_last ymdl1 = y/month_day_last{m}; in main()
[all …]
Dmonth_day_last.pass.cpp53 using month_day_last = std::chrono::month_day_last; in main() typedef
58 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
59 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
69 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
71 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
79 month_day_last mdl1 = last/m; in main()
80 month_day_last mdl2 = m/last; in main()
89 ASSERT_SAME_TYPE(month_day_last, decltype(last/2)); in main()
91 ASSERT_SAME_TYPE(month_day_last, decltype(2/last)); in main()
99 month_day_last mdl1 = last/i; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dday.pass.cpp28 using month_day_last = std::chrono::month_day_last; in main() typedef
35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main()
36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main()
37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main()
38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main()
39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main()
40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main()
41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main()
42 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 8}}}.day() == day{31}, ""); in main()
43 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 9}}}.day() == day{30}, ""); in main()
[all …]
Dctor.pass.cpp35 using month_day_last = std::chrono::month_day_last; in main() typedef
38 ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); in main()
42 constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; in main()
45 static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); in main()
48 constexpr year_month_day_last ymdl1{year{2019}, month_day_last{January}}; in main()
51 static_assert( ymdl1.month_day_last() == month_day_last{January}, ""); in main()
Dmonth_day_last.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
30 …ERT_NOEXCEPT( std::declval<const year_month_day_last>().month_day_last()); in main()
31 …ASSERT_SAME_TYPE(month_day_last, decltype(std::declval<const year_month_day_last>().month_day_last in main()
35 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); in main()
36 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i); in main()
Dok.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
35 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad in main()
36 static_assert(!year_month_day_last{year{-32768}, month_day_last{January}}.ok(), ""); // Bad year in main()
37 … static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month in main()
38 static_assert( year_month_day_last{year{2019}, month_day_last{January}}.ok(), ""); // All OK in main()
42 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; in main()
49 year_month_day_last ym{year{i}, month_day_last{January}}; in main()
Dplus_minus_equal_year.pass.cpp40 using month_day_last = std::chrono::month_day_last; in main() typedef
50 …stConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_last{month{1}}}), "… in main()
54 month_day_last mdl{month{2}}; in main()
57 assert(ymdl.month_day_last() == mdl); in main()
59 assert(ymdl.month_day_last() == mdl); in main()
61 assert(ymdl.month_day_last() == mdl); in main()
63 assert(ymdl.month_day_last() == mdl); in main()
Dop_local_days.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main()
42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main()
49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main()
56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
Dop_sys_days.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main()
42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main()
49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main()
56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
Dplus_minus_equal_month.pass.cpp40 using month_day_last = std::chrono::month_day_last; in main() typedef
50 …nstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day_last{month{1}}}), "… in main()
55 month_day_last mdl{month{i}}; in main()
Dmonth.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
35 year_month_day_last ymd(year{1234}, month_day_last{month{i}}); in main()
Dyear.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
35 year_month_day_last ym(year{i}, month_day_last{month{}}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dcomparisons.pass.cpp34 using month_day_last = std::chrono::month_day_last; in main() typedef
44 year_month_day_last{year{1234}, month_day_last{January}}, in main()
45 year_month_day_last{year{1234}, month_day_last{January}}, in main()
50 year_month_day_last{year{1234}, month_day_last{January}}, in main()
51 year_month_day_last{year{1234}, month_day_last{February}}, in main()
56 year_month_day_last{year{1234}, month_day_last{January}}, in main()
57 year_month_day_last{year{1235}, month_day_last{January}}, in main()
62 year_month_day_last{year{1234}, month_day_last{January}}, in main()
63 year_month_day_last{year{1234}, month_day_last{February}}, in main()
68 year_month_day_last{year{1234}, month_day_last{February}}, in main()
[all …]
Dminus.pass.cpp55 using month_day_last = std::chrono::month_day_last; in main() typedef
66 … static_assert(testConstexprYears(year_month_day_last{year{1234}, month_day_last{December}}), ""); in main()
67 year_month_day_last ym{year{1234}, month_day_last{December}}; in main()
80 … static_assert(testConstexprMonths(year_month_day_last{year{1234}, month_day_last{December}}), ""); in main()
82 year_month_day_last ym{year{1234}, month_day_last{December}}; in main()
Dplus.pass.cpp71 using month_day_last = std::chrono::month_day_last; in main() typedef
85 static_assert(testConstexprMonths(year_month_day_last{year{1}, month_day_last{January}}), ""); in main()
87 year_month_day_last ym{year{1234}, month_day_last{January}}; in main()
107 static_assert(testConstexprYears(year_month_day_last{year{1}, month_day_last{January}}), ""); in main()
109 year_month_day_last ym{year{1234}, month_day_last{January}}; in main()
Dstreaming.pass.cpp34 using month_day_last = std::chrono::month_day_last; in main() typedef
36 std::cout << year_month_day_last{year{2018}, month_day_last{month{3}}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/
Dok.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().ok()); in main()
29 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month_day_last>().ok())); in main()
31 static_assert(!month_day_last{month{}}.ok(), ""); in main()
32 static_assert( month_day_last{std::chrono::May}.ok(), ""); in main()
36 month_day_last mdl{month{i}}; in main()
43 month_day_last mdl{month{i}}; in main()
Dcomparisons.pass.cpp31 using month_day_last = std::chrono::month_day_last; in main() typedef
33 AssertComparisons6AreNoexcept<month_day_last>(); in main()
34 AssertComparisons6ReturnBool<month_day_last>(); in main()
36 static_assert( testComparisons6Values<month_day_last>(month{1}, month{1}), ""); in main()
37 static_assert( testComparisons6Values<month_day_last>(month{1}, month{2}), ""); in main()
42 assert((testComparisons6Values<month_day_last>(month{i}, month{j}))); in main()
Dmonth.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().month()); in main()
29 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_day_last>().month())); in main()
31 static_assert( month_day_last{month{}}.month() == month{}, ""); in main()
35 month_day_last mdl(month{i}); in main()
Dctor.pass.cpp30 using month_day_last = std::chrono::month_day_last; in main() typedef
32 ASSERT_NOEXCEPT(month_day_last{month{1}}); in main()
34 constexpr month_day_last md0{month{}}; in main()
38 constexpr month_day_last md1{std::chrono::January}; in main()
Dtypes.pass.cpp23 using month_day_last = std::chrono::month_day_last; in main() typedef
25 static_assert(std::is_trivially_copyable_v<month_day_last>, ""); in main()
26 static_assert(std::is_standard_layout_v<month_day_last>, ""); in main()
Dstreaming.pass.cpp31 using month_day_last = std::chrono::month_day_last; in main() typedef
33 std::cout << month_day_last{month{1}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dop_local_days.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main()
42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main()
49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main()
56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dctor.year_month_day_last.pass.cpp35 using month_day_last = std::chrono::month_day_last; in main() typedef
42 constexpr year_month_day_last ymdl{year{2019}, month_day_last{month{1}}}; in main()
52 constexpr year_month_day_last ymdl{year{1970}, month_day_last{month{4}}}; in main()
62 constexpr year_month_day_last ymdl{year{2000}, month_day_last{month{2}}}; in main()
72 year_month_day_last ymdl{year{1900}, month_day_last{month{2}}}; in main()
/external/libcxx/include/
Dchrono405 // 25.8.10, class month_day_last // C++20
406 class month_day_last;
408 constexpr bool operator==(const month_day_last& x, const month_day_last& y) noexcept;
409 constexpr bool operator!=(const month_day_last& x, const month_day_last& y) noexcept;
410 constexpr bool operator< (const month_day_last& x, const month_day_last& y) noexcept;
411 constexpr bool operator> (const month_day_last& x, const month_day_last& y) noexcept;
412 constexpr bool operator<=(const month_day_last& x, const month_day_last& y) noexcept;
413 constexpr bool operator>=(const month_day_last& x, const month_day_last& y) noexcept;
549 constexpr month_day_last
551 constexpr month_day_last
[all …]