Sdílet prostřednictvím


Operátory porovnání CTimeSpan

Operátory porovnání.

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( );

Parametry

span

Objekt, který chcete porovnat.

Vrácená hodnota

Tyto operátory porovnání dvou hodnot relativní čas.Vrátit true Pokud je podmínka splněna; jinak false.

Příklad

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

Požadavky

Záhlaví: atltime.h

Viz také

Referenční dokumentace

Třída CTimeSpan

Diagram hierarchie