Поделиться через


CTimeSpan Comparison Operators

Comparison operators.

bool operator ==(
   CTimeSpan span 
) const throw( );
bool operator !=(
   CTimeSpan span 
) const throw( );
bool operator <(
   CTimeSpan span 
) const throw( );
bool operator >(
   CTimeSpan span 
) const throw( );
bool operator <=(
   CTimeSpan span 
) const throw( );
bool operator >=(
   CTimeSpan span 
) const throw( );

Параметры

span

The object to compare.

Возвращаемое значение

These operators compare two relative time values. They return true if the condition is true; otherwise false.

Пример

CTimeSpan ts1(100);
CTimeSpan ts2(110);
ATLASSERT((ts1 != ts2) && (ts1 < ts2) && (ts1 <= ts2));   

Требования

Header: atltime.h

См. также

Основные понятия

CTimeSpan Class

CTimeSpan Members

Hierarchy Chart