cpp/chrono/year/ok

Checks if the year value stored in is in the valid range, i.e., [-32767, 32767].

Return value
if the year value stored in is in the range [-32767, 32767]. Otherwise.

Possible implementation
See the implementations in libstdc++, libc++, and Howard Hinnant's date.h.