susumu.yata
null+****@clear*****
Tue Dec 16 10:41:13 JST 2014
susumu.yata 2014-11-06 16:03:43 +0900 (Thu, 06 Nov 2014) New Revision: b3299db24a125d8601417b89067411c2f7233b00 https://github.com/groonga/grnxx/commit/b3299db24a125d8601417b89067411c2f7233b00 Message: Add is_finite() to Float. Modified files: include/grnxx/data_types/scalar/float.hpp Modified: include/grnxx/data_types/scalar/float.hpp (+3 -0) =================================================================== --- include/grnxx/data_types/scalar/float.hpp 2014-11-06 14:39:45 +0900 (092aa36) +++ include/grnxx/data_types/scalar/float.hpp 2014-11-06 16:03:43 +0900 (8f8d353) @@ -36,6 +36,9 @@ class Float { constexpr bool is_max() const { return value_ == max_value(); } + constexpr bool is_finite() const { + return std::isfinite(value_); + } constexpr bool is_infinity() const { return std::isinf(value_); } -------------- next part -------------- HTML����������������������������... Descargar