From 9c81cffc32a5e88ac9f81fe3d08c2a670efa79d2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 2 Jan 2020 12:48:57 +0100 Subject: new_type: implement multiplication --- 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 7f75ec4..18e81f7 100644 --- a/doc/src/index.rst +++ b/doc/src/index.rst @@ -293,6 +293,15 @@ Arithmetic Operators **enablement:** This operator shall be available iff. a) :cpp:type:`new_type::base_type` is subtractable 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 input operator shall be noexcept iff. :cpp:type:`new_type::base_type` is nothrow multipliable as well as nothrow copy-constructible. + + **enablement:** This operator shall be available iff. a) :cpp:type:`new_type::base_type` is multipliable using the operator :literal:`*` and b) :cpp:type:`DerivationClause` includes :cpp:var:`Arithmetic`. + Header :literal:`` ========================================= -- cgit v1.2.3