ldiv_t -- <cstdlib> : divを追加 #1067 #1022

1 · cpprefjp · Feb. 20, 2023, 10:33 a.m.
diff --git a/reference/cstdlib/ldiv_t.md b/reference/cstdlib/ldiv_t.md new file mode 100644 index 000000000..a9de6511c --- /dev/null +++ b/reference/cstdlib/ldiv_t.md @@ -0,0 +1,41 @@ +# ldiv_t +* cstdlib[meta header] +* std[meta namespace] +* class[meta id-type] + +```cpp +namespace std { + struct ldiv_t { + long quot; + long rem; + }; +} +``` + +## 概要 +[`std::div()`](div.md)関数の`long`版の戻り値。 + +`quot`は「quotient (商)」、`rem`は「remainder (剰余)」。 + + +## 例 +```cpp example +#include <iostream> +...