@@ -18515,15 +18515,15 @@
18515
18515
namespace std {
18516
18516
using imaxdiv_t = @\seebelow@ ;
18517
18517
18518
- intmax_t imaxabs(intmax_t j);
18519
- imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
18518
+ constexpr intmax_t imaxabs(intmax_t j);
18519
+ constexpr imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
18520
18520
intmax_t strtoimax(const char* nptr, char** endptr, int base);
18521
18521
uintmax_t strtoumax(const char* nptr, char** endptr, int base);
18522
18522
intmax_t wcstoimax(const wchar_t* nptr, wchar_t** endptr, int base);
18523
18523
uintmax_t wcstoumax(const wchar_t* nptr, wchar_t** endptr, int base);
18524
18524
18525
- intmax_t abs(intmax_t); // optional, see below
18526
- imaxdiv_t div(intmax_t, intmax_t); // optional, see below
18525
+ constexpr intmax_t abs(intmax_t); // optional, see below
18526
+ constexpr imaxdiv_t div(intmax_t, intmax_t); // optional, see below
18527
18527
}
18528
18528
18529
18529
#define PRId@\placeholdernc {N}@ @\seebelow@
@@ -18595,12 +18595,12 @@
18595
18595
if and only if the type \tcode {intmax_t} designates an extended integer
18596
18596
type\iref {basic.fundamental }, the following function signatures are added:
18597
18597
\begin {codeblock }
18598
- intmax_t abs(intmax_t);
18599
- imaxdiv_t div(intmax_t, intmax_t);
18598
+ constexpr intmax_t abs(intmax_t);
18599
+ constexpr imaxdiv_t div(intmax_t, intmax_t);
18600
18600
\end {codeblock }
18601
18601
which shall have the same semantics as the function signatures
18602
- \tcode {intmax_t imaxabs(intmax_t)} and
18603
- \tcode {imaxdiv_t imaxdiv(intmax_t, intmax_t)}, respectively.
18602
+ \tcode {constexpr intmax_t imaxabs(intmax_t)} and
18603
+ \tcode {constexpr imaxdiv_t imaxdiv(intmax_t, intmax_t)}, respectively.
18604
18604
\end {itemize }
18605
18605
18606
18606
\xrefc {7.8}
0 commit comments