From Jason Turner

[numeric.ops.lcm]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpi3o4f56k/{from.md → to.md} +19 -0
tmp/tmpi3o4f56k/{from.md → to.md} RENAMED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Least common multiple <a id="numeric.ops.lcm">[[numeric.ops.lcm]]</a>
2
+
3
+ ``` cpp
4
+ template <class M, class N>
5
+ constexpr common_type_t<M,N> lcm(M m, N n);
6
+ ```
7
+
8
+ *Requires:* `|m|` and `|n|` shall be representable as a value of
9
+ `common_type_t<M, N>`. The least common multiple of `|m|` and `|n|`
10
+ shall be representable as a value of type `common_type_t<M,N>`.
11
+
12
+ *Remarks:* If either `M` or `N` is not an integer type, or if either is
13
+ cv `bool` the program is ill-formed.
14
+
15
+ *Returns:* Zero when either `m` or `n` is zero. Otherwise, returns the
16
+ least common multiple of `|m|` and `|n|`.
17
+
18
+ *Throws:* Nothing.
19
+