Home
last modified time | relevance | path

Searched refs:year_month_weekday (Results 1 – 20 of 20) sorted by relevance

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp32 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
34 AssertComparisons2AreNoexcept<year_month_weekday>(); in main()
35 AssertComparisons2ReturnBool<year_month_weekday>(); in main()
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()
[all …]
Dplus.pass.cpp35 constexpr bool testConstexprYears(std::chrono::year_month_weekday ym) in testConstexprYears()
45 constexpr bool testConstexprMonths(std::chrono::year_month_weekday ym) in testConstexprMonths()
61 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
69 ASSERT_NOEXCEPT(std::declval<year_month_weekday>() + std::declval<months>()); in main()
70 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_weekday>()); in main()
72 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() + std::declval<mo… in main()
73 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<months>() + std::declval<year_month_wee… in main()
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()
80 year_month_weekday ym1 = ym + months{i}; in main()
[all …]
Dminus.pass.cpp31 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::we… in testConstexprYears()
32 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears()
43 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::November, std::chrono::w… in testConstexprMonths()
44 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::months{6}; in testConstexprMonths()
60 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
68 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<ye… in main()
69 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() - std::declval<ye… in main()
73 year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 1}}; in main()
76 year_month_weekday ym1 = ym - years{i}; in main()
85 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<mo… in main()
[all …]
Dstreaming.pass.cpp51 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
56 std::cout << year_month_weekday{year{2018}, month{3}, weekday{4}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main()
35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main()
37 static_assert(!year_month_weekday{}.ok(), ""); in main()
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()
[all …]
Dop.local_days.pass.cpp36 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
38 ASSERT_NOEXCEPT(local_days(std::declval<year_month_weekday>())); in main()
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
71 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dop.sys_days.pass.cpp36 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
38 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_weekday>())); in main()
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
71 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dplus_minus_equal_month.pass.cpp42 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
46 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
47 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
49 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
50 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
53 …static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, w… in main()
58 year_month_weekday ymwd(y, month{i}, weekday_indexed{Tuesday, 2}); in main()
Dplus_minus_equal_year.pass.cpp42 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
45 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
46 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
48 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
49 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
54 …static_assert(testConstexpr<year_month_weekday, years>(year_month_weekday{year{1}, January, weekda… in main()
58 year_month_weekday ymwd(year{i}, January, weekday_indexed{Tuesday, 2}); in main()
Dctor.local_days.pass.cpp39 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
41 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const local_days>()}); in main()
45 constexpr year_month_weekday ymwd{sd}; in main()
53 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
58 constexpr year_month_weekday ymwd{sd}; in main()
66 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
72 constexpr year_month_weekday ymwd{sd}; in main()
80 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
85 year_month_weekday ymwd{sd}; in main()
93 assert( ymwd == year_month_weekday{local_days{ymwd}}); // round trip in main()
Dctor.sys_days.pass.cpp38 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
40 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const sys_days>()}); in main()
44 constexpr year_month_weekday ymwd{sd}; in main()
52 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
57 constexpr year_month_weekday ymwd{sd}; in main()
65 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
71 constexpr year_month_weekday ymwd{sd}; in main()
79 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
84 year_month_weekday ymwd{sd}; in main()
92 assert( ymwd == year_month_weekday{sys_days{ymwd}}); // round trip in main()
Dweekday_indexed.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
31 …ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexe… 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()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
Dyear.pass.cpp28 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
30 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().year()); in main()
31 ASSERT_SAME_TYPE(year, decltype(std::declval<const year_month_weekday>().year())); in main()
33 static_assert( year_month_weekday{}.year() == year{}, ""); in main()
37 year_month_weekday ym(year{i}, month{1}, weekday_indexed{}); in main()
Dmonth.pass.cpp28 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
30 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().month()); in main()
31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_weekday>().month())); in main()
33 static_assert( year_month_weekday{}.month() == month{}, ""); in main()
37 year_month_weekday ymd(year{1234}, month{i}, weekday_indexed{}); in main()
Dindex.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
31 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().index()); in main()
32 ASSERT_SAME_TYPE(unsigned, decltype(std::declval<const year_month_weekday>().index())); in main()
34 static_assert( year_month_weekday{}.index() == 0, ""); in main()
38 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
Dweekday.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
31 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().weekday()); in main()
32 ASSERT_SAME_TYPE(weekday, decltype(std::declval<const year_month_weekday>().weekday())); in main()
34 static_assert( year_month_weekday{}.weekday() == weekday{}, ""); in main()
38 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
Dctor.pass.cpp40 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
45 ASSERT_NOEXCEPT(year_month_weekday{}); in main()
46 ASSERT_NOEXCEPT(year_month_weekday{year{1}, month{1}, weekday_indexed{Tuesday, 1}}); in main()
48 constexpr year_month_weekday ym0{}; in main()
56 constexpr year_month_weekday ym1{year{2019}, January, weekday_indexed{Tuesday, 1}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_weekday.pass.cpp46 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
60 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb2018/weekday_indexed{Tuesday, 2})); in main()
74 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
84 ASSERT_SAME_TYPE(year_month_weekday, decltype(year{2018}/Feb1stTues)); in main()
86 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/year{2018})); in main()
101 year_month_weekday ymd1 = y/mwd; in main()
102 year_month_weekday ymd2 = mwd/y; in main()
117 ASSERT_SAME_TYPE(year_month_weekday, decltype(2018/Feb1stTues)); in main()
119 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/2018)); in main()
134 year_month_weekday ymd1 = i/mwd; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/
Dtypes.pass.cpp22 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
24 static_assert(std::is_trivially_copyable_v<year_month_weekday>, ""); in main()
25 static_assert(std::is_standard_layout_v<year_month_weekday>, ""); in main()
/external/libcxx/include/
Dchrono493 // 25.8.16, class year_month_weekday // C++20
494 class year_month_weekday;
496 constexpr bool operator==(const year_month_weekday& x,
497 const year_month_weekday& y) noexcept;
498 constexpr bool operator!=(const year_month_weekday& x,
499 const year_month_weekday& y) noexcept;
501 constexpr year_month_weekday
502 operator+(const year_month_weekday& ymwd, const months& dm) noexcept;
503 constexpr year_month_weekday
504 operator+(const months& dm, const year_month_weekday& ymwd) noexcept;
[all …]