From 9a5d11d4c5701c8ad2e6aa1213cc9fd2937ccbc4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 2 Jan 2020 13:15:53 +0100 Subject: new_type: implement add-assign --- doc/src/index.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/src/index.rst b/doc/src/index.rst index e8647c1..2694dba 100644 --- a/doc/src/index.rst +++ b/doc/src/index.rst @@ -284,6 +284,15 @@ Arithmetic Operators **enablement:** This operator shall be available iff. a) :cpp:type:`new_type::base_type` is addable using the operator :literal:`+` and b) :cpp:type:`DerivationClause` includes :cpp:var:`Arithmetic`. +.. cpp:function:: template \ + constexpr new_type & operator+=(new_type const & lhs, new_type const & rhs) + + **noexcept specification:** This operator shall be noexcept iff. :cpp:type:`new_type::base_type` is nothrow add-assignable. + + **enablement:** This operator shall be available iff. a) :cpp:type:`new_type::base_type` is add-assignable using the operator :literal:`+=` and b) :cpp:type:`DerivationClause` includes :cpp:var:`Arithmetic`. + .. cpp:function:: template \ -- cgit v1.2.3