コード例 #1
0
ファイル: int_adapter.hpp プロジェクト: 2asoft/xray-16
 //! Returns either special value type or is_not_special
 static special_values to_special(int_type v)
 {
   if (is_not_a_number(v)) return not_a_date_time;
   if (is_neg_infinity(v)) return neg_infin;
   if (is_pos_infinity(v)) return pos_infin;
   return not_special;
 }
コード例 #2
0
ファイル: posix_time_config.hpp プロジェクト: CRF/passenger
 bool is_special()const
 {
   return(is_pos_infinity() || is_neg_infinity() || is_not_a_date_time());
 }
コード例 #3
0
ファイル: time.hpp プロジェクト: DCMF/Dawn-of-Civilization
 //! check to see if date is one of the infinity values
 bool is_infinity()  const
 {
   return (is_pos_infinity() || is_neg_infinity()); 
 }