File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,16 @@ class ICEBERG_EXPORT Literal {
109109 // / and should not be AboveMax or BelowMin.
110110 std::partial_ordering operator <=>(const Literal& other) const ;
111111
112+ // / Check if this literal represents a value above the maximum allowed value
113+ // / for its type. This occurs when casting from a wider type to a narrower type
114+ // / and the value exceeds the target type's maximum.
115+ // / \return true if this literal represents an AboveMax value, false otherwise
112116 bool IsAboveMax () const ;
117+
118+ // / Check if this literal represents a value below the minimum allowed value
119+ // / for its type. This occurs when casting from a wider type to a narrower type
120+ // / and the value is less than the target type's minimum.
121+ // / \return true if this literal represents a BelowMin value, false otherwise
113122 bool IsBelowMin () const ;
114123
115124 std::string ToString () const ;
You can’t perform that action at this time.
0 commit comments