aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2020-01-02 15:42:12 +0100
committerFelix Morgner <felix.morgner@gmail.com>2020-01-02 15:42:12 +0100
commit05abaa3d00393165e7794a150ad6c4b5ac5dd37e (patch)
treebf31b1f546b8e04ba69f3750c095cda2575020a5 /doc
parent350a6e397f544d3c5444cbfd79d672b34cfd268c (diff)
downloadnewtype-05abaa3d00393165e7794a150ad6c4b5ac5dd37e.tar.xz
newtype-05abaa3d00393165e7794a150ad6c4b5ac5dd37e.zip
new_type: implement multiply-assignment
Diffstat (limited to 'doc')
-rw-r--r--doc/src/index.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/index.rst b/doc/src/index.rst
index 591a168..4c13412 100644
--- a/doc/src/index.rst
+++ b/doc/src/index.rst
@@ -320,6 +320,14 @@ Arithmetic Operators
**enablement:** This operator shall be available iff. a) :cpp:type:`new_type<BaseType, TagType, DerivationClause>::base_type` is multipliable using the operator :literal:`*` and b) :cpp:type:`DerivationClause` includes :cpp:var:`Arithmetic`.
+.. cpp:function:: template<typename BaseType, \
+ typename TagType, \
+ auto DerivationClause> \
+ constexpr new_type<BaseType, TagType, DerivationClause> & operator*=(new_type<BaseType, TagType, DerivationClause> const & lhs, new_type<BaseType, TagType, DerivationClause> const & rhs)
+
+ **noexcept specification:** This operator shall be noexcept iff. :cpp:type:`new_type<BaseType, TagType, DerivationClause>::base_type` is nothrow multiply-assignable.
+
+ **enablement:** This operator shall be available iff. a) :cpp:type:`new_type<BaseType, TagType, DerivationClause>::base_type` is multiply-assignable using the operator :literal:`-=` and b) :cpp:type:`DerivationClause` includes :cpp:var:`Arithmetic`.
.. cpp:function:: template<typename BaseType, \
typename TagType, \