susumu.yata
null+****@clear*****
Fri Oct 24 10:59:47 JST 2014
susumu.yata 2014-10-24 10:59:47 +0900 (Fri, 24 Oct 2014) New Revision: af8844e5addf232393c316bc2273f7e1703feafd https://github.com/groonga/grnxx/commit/af8844e5addf232393c316bc2273f7e1703feafd Message: Add min() and max() to Int. (#88) Modified files: include/grnxx/new_types/int.hpp Modified: include/grnxx/new_types/int.hpp (+6 -0) =================================================================== --- include/grnxx/new_types/int.hpp 2014-10-23 21:11:34 +0900 (73a4030) +++ include/grnxx/new_types/int.hpp 2014-10-24 10:59:47 +0900 (eed8030) @@ -195,6 +195,12 @@ class Int { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(value_ >= rhs.value_); } + static constexpr Int min() { + return Int(min_value()); + } + static constexpr Int max() { + return Int(max_value()); + } static constexpr Int na() { return Int(NA()); } -------------- next part -------------- HTML����������������������������...Download