tmp/tmpdrmqmhew/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
### Header `<cstdlib>` synopsis <a id="cstdlib.syn">[[cstdlib.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
-
using size_t = see below;
|
| 6 |
using div_t = see below;
|
| 7 |
using ldiv_t = see below;
|
| 8 |
using lldiv_t = see below;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
#define NULL see below
|
| 12 |
#define EXIT_FAILURE see below
|
| 13 |
#define EXIT_SUCCESS see below
|
| 14 |
#define RAND_MAX see below
|
| 15 |
#define MB_CUR_MAX see below
|
| 16 |
|
|
@@ -20,18 +20,18 @@ namespace std {
|
|
| 20 |
extern "C++" using atexit-handler = void(); // exposition only
|
| 21 |
extern "C" using c-compare-pred = int(const void*, const void*); // exposition only
|
| 22 |
extern "C++" using compare-pred = int(const void*, const void*); // exposition only
|
| 23 |
|
| 24 |
// [support.start.term], start and termination
|
| 25 |
-
[[noreturn]] void abort() noexcept;
|
| 26 |
-
int atexit(c-atexit-handler* func) noexcept;
|
| 27 |
-
int atexit(atexit-handler* func) noexcept;
|
| 28 |
-
int at_quick_exit(c-atexit-handler* func) noexcept;
|
| 29 |
-
int at_quick_exit(atexit-handler* func) noexcept;
|
| 30 |
-
[[noreturn]] void exit(int status);
|
| 31 |
-
[[noreturn]] void _Exit(int status) noexcept;
|
| 32 |
-
[[noreturn]] void quick_exit(int status) noexcept;
|
| 33 |
|
| 34 |
char* getenv(const char* name);
|
| 35 |
int system(const char* string);
|
| 36 |
|
| 37 |
// [c.malloc], C library memory allocation
|
|
@@ -71,25 +71,23 @@ namespace std {
|
|
| 71 |
// [c.math.rand], low-quality random number generation
|
| 72 |
int rand();
|
| 73 |
void srand(unsigned int seed);
|
| 74 |
|
| 75 |
// [c.math.abs], absolute values
|
| 76 |
-
int abs(int j);
|
| 77 |
-
long int abs(long int j);
|
| 78 |
-
long long int abs(long long int j);
|
| 79 |
-
|
| 80 |
-
double abs(double j);
|
| 81 |
-
long double abs(long double j);
|
| 82 |
|
| 83 |
-
long int labs(long int j);
|
| 84 |
-
long long int llabs(long long int j);
|
| 85 |
|
| 86 |
-
div_t div(int numer, int denom);
|
| 87 |
-
ldiv_t div(long int numer, long int denom);
|
| 88 |
-
lldiv_t div(long long int numer, long long int denom);
|
| 89 |
-
ldiv_t ldiv(long int numer, long int denom);
|
| 90 |
-
lldiv_t lldiv(long long int numer, long long int denom);
|
| 91 |
}
|
| 92 |
```
|
| 93 |
|
| 94 |
The contents and meaning of the header `<cstdlib>` are the same as the C
|
| 95 |
standard library header `<stdlib.h>`, except that it does not declare
|
|
|
|
| 1 |
### Header `<cstdlib>` synopsis <a id="cstdlib.syn">[[cstdlib.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
+
using size_t = see below; // freestanding
|
| 6 |
using div_t = see below;
|
| 7 |
using ldiv_t = see below;
|
| 8 |
using lldiv_t = see below;
|
| 9 |
}
|
| 10 |
|
| 11 |
+
#define NULL see below // freestanding
|
| 12 |
#define EXIT_FAILURE see below
|
| 13 |
#define EXIT_SUCCESS see below
|
| 14 |
#define RAND_MAX see below
|
| 15 |
#define MB_CUR_MAX see below
|
| 16 |
|
|
|
|
| 20 |
extern "C++" using atexit-handler = void(); // exposition only
|
| 21 |
extern "C" using c-compare-pred = int(const void*, const void*); // exposition only
|
| 22 |
extern "C++" using compare-pred = int(const void*, const void*); // exposition only
|
| 23 |
|
| 24 |
// [support.start.term], start and termination
|
| 25 |
+
[[noreturn]] void abort() noexcept; // freestanding
|
| 26 |
+
int atexit(c-atexit-handler* func) noexcept; // freestanding
|
| 27 |
+
int atexit(atexit-handler* func) noexcept; // freestanding
|
| 28 |
+
int at_quick_exit(c-atexit-handler* func) noexcept; // freestanding
|
| 29 |
+
int at_quick_exit(atexit-handler* func) noexcept; // freestanding
|
| 30 |
+
[[noreturn]] void exit(int status); // freestanding
|
| 31 |
+
[[noreturn]] void _Exit(int status) noexcept; // freestanding
|
| 32 |
+
[[noreturn]] void quick_exit(int status) noexcept; // freestanding
|
| 33 |
|
| 34 |
char* getenv(const char* name);
|
| 35 |
int system(const char* string);
|
| 36 |
|
| 37 |
// [c.malloc], C library memory allocation
|
|
|
|
| 71 |
// [c.math.rand], low-quality random number generation
|
| 72 |
int rand();
|
| 73 |
void srand(unsigned int seed);
|
| 74 |
|
| 75 |
// [c.math.abs], absolute values
|
| 76 |
+
constexpr int abs(int j);
|
| 77 |
+
constexpr long int abs(long int j);
|
| 78 |
+
constexpr long long int abs(long long int j);
|
| 79 |
+
constexpr floating-point-type abs(floating-point-type j);
|
|
|
|
|
|
|
| 80 |
|
| 81 |
+
constexpr long int labs(long int j);
|
| 82 |
+
constexpr long long int llabs(long long int j);
|
| 83 |
|
| 84 |
+
constexpr div_t div(int numer, int denom);
|
| 85 |
+
constexpr ldiv_t div(long int numer, long int denom); // see [library.c]
|
| 86 |
+
constexpr lldiv_t div(long long int numer, long long int denom); // see [library.c]
|
| 87 |
+
constexpr ldiv_t ldiv(long int numer, long int denom);
|
| 88 |
+
constexpr lldiv_t lldiv(long long int numer, long long int denom);
|
| 89 |
}
|
| 90 |
```
|
| 91 |
|
| 92 |
The contents and meaning of the header `<cstdlib>` are the same as the C
|
| 93 |
standard library header `<stdlib.h>`, except that it does not declare
|