Compare two duration
objects to see if one is greater than or equal to the other, even if
they have distinct representations and/or periods.
template <class Rep1, class Period1, class Rep2, class Period2> constexpr bool operator>=( const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
- Requirements:
Either
lhsmust be implicitly convertible torhs, or vice versa. If neither can be implicitly converted to the other, or they are distinct instantiations ofdurationbut each can implicitly convert to the other, then the expression is ill formed.- Returns:
!(lhs<rhs)
Header
#include <chrono>