Expose iso_week::year::is_leap()

This commit is contained in:
DavisVaughan authored and Howard Hinnant committed 2023-04-21 14:48:49 -04:00
1 parent 50acf3ffd8
commit cc4685a21e
2 files changed
+17 -4

No files matched your search

+3
View File
@@ -93,6 +93,9 @@ main()
static_assert(year{2015} <= 2015_y, "");
static_assert(year{2016} >= 2015_y, "");
static_assert(year{2015}.is_leap(), "");
static_assert(!year{2016}.is_leap(), "");
auto y = year{2014};
assert(++y == year{2015});
assert(y == year{2015});