CTimeSpan 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

要比较的对象。

返回值

这些运算符比较两个相对时间值。 在条件为true,则返回; true 否则 false

示例

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

要求

Header: atltime.h

请参见

参考

CTimeSpan Class

层次结构图