Expose iso_week::year::is_leap()

This commit is contained in:
DavisVaughan
2023-04-21 14:19:32 -04:00
committed by Howard Hinnant
parent 50acf3ffd8
commit cc4685a21e
2 changed files with 17 additions and 4 deletions
+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});