cpp/chrono/weekday indexed/ok

Checks if the weekday object and the index stored in are both valid.

Return value
if and index is in the range [1, 5]. Otherwise.