/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ |
D | plus.pass.cpp | 35 constexpr bool testConstexprYears(std::chrono::year_month ym) in testConstexprYears() 45 constexpr bool testConstexprMonths(std::chrono::year_month ym) in testConstexprMonths() 61 using year_month = std::chrono::year_month; in main() typedef 64 ASSERT_NOEXCEPT(std::declval<year_month>() + std::declval<years>()); in main() 65 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month>()); in main() 67 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() + std::declval<years>())); in main() 68 ASSERT_SAME_TYPE(year_month, decltype(std::declval<years>() + std::declval<year_month>())); in main() 70 static_assert(testConstexprYears (year_month{year{1}, month{1}}), ""); in main() 72 year_month ym{year{1234}, std::chrono::January}; in main() 75 year_month ym1 = ym + years{i}; in main() [all …]
|
D | minus.pass.cpp | 39 using year_month = std::chrono::year_month; in main() typedef 42 ASSERT_NOEXCEPT( std::declval<year_month>() - std::declval<years>()); in main() 43 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() - std::declval<years>())); in main() 47 year_month ym{year{1234}, std::chrono::January}; in main() 50 year_month ym1 = ym - years{i}; in main() 57 ASSERT_NOEXCEPT( std::declval<year_month>() - std::declval<months>()); in main() 58 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() - std::declval<months>())); in main() 62 year_month ym{year{1234}, std::chrono::November}; in main() 65 year_month ym1 = ym - months{i}; in main() 72 ASSERT_NOEXCEPT( std::declval<year_month>() - std::declval<year_month>()); in main() [all …]
|
D | comparisons.pass.cpp | 34 using year_month = std::chrono::year_month; in main() typedef 36 AssertComparisons6AreNoexcept<year_month>(); in main() 37 AssertComparisons6ReturnBool<year_month>(); in main() 40 year_month{year{1234}, std::chrono::January}, in main() 41 year_month{year{1234}, std::chrono::January}, in main() 45 year_month{year{1234}, std::chrono::January}, in main() 46 year_month{year{1234}, std::chrono::February}, in main() 50 year_month{year{1234}, std::chrono::January}, in main() 51 year_month{year{1235}, std::chrono::January}, in main() 58 year_month{year{1234}, month{i}}, in main() [all …]
|
D | streaming.pass.cpp | 52 using year_month = std::chrono::year_month; in main() typedef 56 std::cout << year_month{year{2018}, month{3}}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ |
D | plus_minus_equal_year.pass.cpp | 41 using year_month = std::chrono::year_month; in main() typedef 44 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<years>()); in main() 45 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<years>())); in main() 47 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<years>()); in main() 48 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<years>())); in main() 50 static_assert(testConstexpr<year_month, years>(year_month{year{1}, month{1}}), ""); in main() 55 year_month ym(year{i}, m); in main()
|
D | plus_minus_equal_month.pass.cpp | 41 using year_month = std::chrono::year_month; in main() typedef 43 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<months>()); in main() 44 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<months>())); in main() 46 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<months>()); in main() 47 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<months>())); in main() 49 static_assert(testConstexpr<year_month, months>(year_month{year{1234}, month{1}}), ""); in main() 54 year_month ym(y, month{i}); in main()
|
D | ok.pass.cpp | 27 using year_month = std::chrono::year_month; in main() typedef 31 ASSERT_NOEXCEPT( std::declval<const year_month>().ok()); in main() 32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month>().ok())); in main() 34 static_assert(!year_month{year{-32768}, January}.ok(), ""); // Bad year in main() 35 static_assert(!year_month{year{2019}, month{}}.ok(), ""); // Bad month in main() 36 static_assert( year_month{year{2019}, January}.ok(), ""); // Both OK in main() 40 year_month ym{year{2019}, month{i}}; in main() 47 year_month ym{year{i}, January}; in main()
|
D | ctor.pass.cpp | 33 using year_month = std::chrono::year_month; in main() typedef 35 ASSERT_NOEXCEPT(year_month{}); in main() 36 ASSERT_NOEXCEPT(year_month{year{1}, month{1}}); in main() 38 constexpr year_month ym0{}; in main() 43 constexpr year_month ym1{year{2018}, std::chrono::January}; in main() 48 constexpr year_month ym2{year{2018}, month{}}; in main()
|
D | year.pass.cpp | 27 using year_month = std::chrono::year_month; in main() typedef 29 ASSERT_NOEXCEPT( std::declval<const year_month>().year()); in main() 30 ASSERT_SAME_TYPE(year, decltype(std::declval<const year_month>().year())); in main() 32 static_assert( year_month{}.year() == year{}, ""); in main() 36 year_month ym(year{i}, month{}); in main()
|
D | month.pass.cpp | 27 using year_month = std::chrono::year_month; in main() typedef 29 ASSERT_NOEXCEPT( std::declval<const year_month>().month()); in main() 30 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month>().month())); in main() 32 static_assert( year_month{}.month() == month{}, ""); in main() 36 year_month ym(year{1234}, month{i}); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month.pass.cpp | 33 using year_month = std::chrono::year_month; in main() typedef 39 ASSERT_SAME_TYPE(year_month, decltype(year{2018}/February)); in main() 46 year_month ym = year{i}/month{j}; in main() 55 ASSERT_SAME_TYPE(year_month, decltype(year{2018}/4)); in main() 63 year_month ym = year{i}/j; in main()
|
D | year_month_day.pass.cpp | 51 using year_month = std::chrono::year_month; in main() typedef 56 constexpr year_month Feb2018{year{2018}, February}; in main() 72 year_month ym(y, m); in main() 95 year_month ym(y, m); in main() 118 year_month ym(y, m); in main()
|
D | year_month_day_last.pass.cpp | 45 using year_month = std::chrono::year_month; in main() typedef 54 constexpr year_month Feb2018{year{2018}, February}; in main() 67 year_month_day_last ymdl = year_month{y,m}/last; in main()
|
D | year_month_weekday.pass.cpp | 44 using year_month = std::chrono::year_month; in main() typedef 57 constexpr year_month Feb2018{year{2018}, February}; in main() 74 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
|
D | year_month_weekday_last.pass.cpp | 45 using year_month = std::chrono::year_month; in main() typedef 57 constexpr year_month Feb2018{year{2018}, February}; in main() 73 year_month_weekday_last ymwdl = year_month{y,m}/weekday_last{wd}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/ |
D | types.pass.cpp | 22 using year_month = std::chrono::year_month; in main() typedef 24 static_assert(std::is_trivially_copyable_v<year_month>, ""); in main() 25 static_assert(std::is_standard_layout_v<year_month>, ""); in main()
|
/external/libcxx/include/ |
D | chrono | 428 // 25.8.13, class year_month // C++20 429 class year_month; 431 constexpr bool operator==(const year_month& x, const year_month& y) noexcept; 432 constexpr bool operator!=(const year_month& x, const year_month& y) noexcept; 433 constexpr bool operator< (const year_month& x, const year_month& y) noexcept; 434 constexpr bool operator> (const year_month& x, const year_month& y) noexcept; 435 constexpr bool operator<=(const year_month& x, const year_month& y) noexcept; 436 constexpr bool operator>=(const year_month& x, const year_month& y) noexcept; 438 constexpr year_month operator+(const year_month& ym, const months& dm) noexcept; 439 constexpr year_month operator+(const months& dm, const year_month& ym) noexcept; [all …]
|