Skip to content

Commit 38a23b3

Browse files
committed
Add the behavior of increment and decrement operators
1 parent d454dcb commit 38a23b3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/modules/ROOT/pages/decimal32_t.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,19 @@ Constructs an integer representation of the decimal value subject to:
184184
. If the decimal value is `INF` returns `std::numeric_limits<IntegerType>::max()`
185185
. If the decimal value is `NAN` returns `std::numeric_limits<IntegerType>::max()`
186186
. If the decimal value exceeds the range of the `IntegerType` returns `std::numeric_limits<IntegerType>::max()`
187+
188+
=== Increment and Decrement operators
189+
190+
[source,c++]
191+
----
192+
// 3.2.2.5 increment and decrement operators:
193+
constexpr decimal32_t& operator++();
194+
constexpr decimal32_t operator++(int);
195+
constexpr decimal32_t& operator--();
196+
constexpr decimal32_t operator--(int);
197+
----
198+
199+
Increments/Decrements the decimal value subject to:
200+
201+
. If the decimal value is `NAN` returns `QNAN`
202+
. If the decimal value is `INF` returns `INF`

0 commit comments

Comments
 (0)