Skip to content

Commit 439fd39

Browse files
authored
Merge pull request #24 from badshah400/master
Update to cppreference 20180311
2 parents afee530 + 0bb59d2 commit 439fd39

3,195 files changed

Lines changed: 30610 additions & 26628 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

man/std::_Exit.3

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH std::_Exit 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::_Exit 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::_Exit \- std::_Exit
44

@@ -28,52 +28,51 @@ std::_Exit \- std::_Exit
2828

2929
.SH Exceptions
3030

31-
noexcept specification:
31+
noexcept specification:
3232
noexcept
33-
3433

3534
.SH Example
3635

3736

3837
// Run this code
3938

4039
#include <iostream>
41-
40+
4241
class Static {
4342
public:
4443
~Static()
4544
{
4645
std::cout << "Static dtor\\n";
4746
}
4847
};
49-
48+
5049
class Local {
5150
public:
5251
~Local()
5352
{
5453
std::cout << "Local dtor\\n";
5554
}
5655
};
57-
56+
5857
Static static_variable; // dtor of this object will *not* be called
59-
58+
6059
void atexit_handler()
6160
{
6261
std::cout << "atexit handler\\n";
6362
}
64-
63+
6564
int main()
6665
{
6766
Local local_variable; // dtor of this object will *not* be called
68-
67+
6968
// handler will *not* be called
7069
const int result = std::atexit(atexit_handler);
71-
70+
7271
if (result != 0) {
7372
std::cerr << "atexit registration failed\\n";
7473
return EXIT_FAILURE;
7574
}
76-
75+
7776
std::cout << "test" << std::endl; // flush from std::endl
7877
// needs to be here, otherwise nothing will be printed
7978
std::_Exit(EXIT_FAILURE);
@@ -86,12 +85,17 @@ std::_Exit \- std::_Exit
8685
.SH See also
8786

8887
abort causes abnormal program termination (without cleaning up)
89-
\fI(function)\fP
88+
\fI(function)\fP
9089
exit causes normal program termination with cleaning up
91-
\fI(function)\fP
90+
\fI(function)\fP
9291
C documentation for
9392
_Exit
9493

9594
.SH Category:
9695

9796
* unconditionally noexcept
97+
98+
Hidden categories:
99+
100+
* Pages with unreviewed unconditional noexcept template
101+
* Pages with unreviewed noexcept template

man/std::abort.3

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH std::abort 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::abort 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::abort \- std::abort
44

@@ -25,10 +25,9 @@ std::abort \- std::abort
2525

2626
.SH Exceptions
2727

28-
\fI(none)\fP \fI(until C++11)\fP
29-
noexcept specification:
30-
noexcept \fI(since C++11)\fP
31-
28+
\fI(none)\fP \fI(until C++11)\fP
29+
noexcept specification: \fI(since C++11)\fP
30+
noexcept
3231

3332
.SH Example
3433

@@ -38,15 +37,15 @@ std::abort \- std::abort
3837
#include <csignal>
3938
#include <iostream>
4039
#include <cstdlib>
41-
40+
4241
class Tester {
4342
public:
4443
Tester() { std::cout << "Tester ctor\\n"; }
4544
~Tester() { std::cout << "Tester dtor\\n"; }
4645
};
47-
46+
4847
Tester static_tester; // Destructor not called
49-
48+
5049
void signal_handler(int signal)
5150
{
5251
if (signal == SIGABRT) {
@@ -56,18 +55,18 @@ std::abort \- std::abort
5655
}
5756
std::_Exit(EXIT_FAILURE);
5857
}
59-
58+
6059
int main()
6160
{
6261
Tester automatic_tester; // Destructor not called
63-
62+
6463
// Setup handler
6564
auto previous_handler = std::signal(SIGABRT, signal_handler);
6665
if (previous_handler == SIG_ERR) {
6766
std::cerr << "Setup failed\\n";
6867
return EXIT_FAILURE;
6968
}
70-
69+
7170
std::abort(); // Raise SIGABRT
7271
std::cout << "This code is unreachable\\n";
7372
}
@@ -81,16 +80,21 @@ std::abort \- std::abort
8180
.SH See also
8281

8382
exit causes normal program termination with cleaning up
84-
\fI(function)\fP
83+
\fI(function)\fP
8584
atexit registers a function to be called on std::exit() invocation
86-
\fI(function)\fP
85+
\fI(function)\fP
8786
quick_exit causes quick program termination without completely cleaning up
88-
\fI(C++11)\fP \fI(function)\fP
87+
\fI(C++11)\fP \fI(function)\fP
8988
signal sets a signal handler for particular signal
90-
\fI(function)\fP
89+
\fI(function)\fP
9190
C documentation for
9291
abort
9392

9493
.SH Category:
9594

9695
* unconditionally noexcept
96+
97+
Hidden categories:
98+
99+
* Pages with unreviewed unconditional noexcept template
100+
* Pages with unreviewed noexcept template

man/std::abs(float),std::fabs.3

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
.TH std::abs(float),std::fabs 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::abs(float),std::fabs 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::abs(float),std::fabs \- std::abs(float),std::fabs
44

55
.SH Synopsis
66
Defined in header <cmath>
77
Defined in header <cstdlib> \fI(since C++17)\fP
8-
float abs( float arg ); \fB(1)\fP
9-
double abs( double arg ); \fB(2)\fP
8+
float abs( float arg ); \fB(1)\fP
9+
double abs( double arg ); \fB(2)\fP
1010
long double abs( long double arg ); \fB(3)\fP
1111
Defined in header <cmath>
12-
float fabs( float arg ); \fB(4)\fP
13-
double fabs( double arg ); \fB(5)\fP
12+
float fabs( float arg ); \fB(4)\fP
13+
double fabs( double arg ); \fB(5)\fP
1414
long double fabs( long double arg ); \fB(6)\fP
15-
double fabs( Integral arg ); \fB(7)\fP \fI(since C++11)\fP
15+
double fabs( Integral arg ); \fB(7)\fP \fI(since C++11)\fP
1616

1717
1-6) Computes the absolute value of a floating point value arg.
1818
7) A set of overloads or a function template for all combinations of arguments of
@@ -58,7 +58,7 @@ std::abs(float),std::fabs \- std::abs(float),std::fabs
5858

5959
#include <iostream>
6060
#include <cmath>
61-
61+
6262
int main()
6363
{
6464
std::cout << "abs(+3.0) = " << std::abs(+3.0) << '\\n'
@@ -79,15 +79,15 @@ std::abs(float),std::fabs \- std::abs(float),std::fabs
7979

8080
abs(int)
8181
labs computes absolute value of an integral value (|x|)
82-
llabs \fI(function)\fP
82+
llabs \fI(function)\fP
8383
\fI(C++11)\fP
8484
copysign copies the sign of a floating point value
85-
\fI(C++11)\fP \fI(function)\fP
85+
\fI(C++11)\fP \fI(function)\fP
8686
signbit checks if the given number is negative
87-
\fI(C++11)\fP \fI(function)\fP
87+
\fI(C++11)\fP \fI(function)\fP
8888
abs(std::complex) returns the magnitude of a complex number
89-
\fI(function template)\fP
89+
\fI(function template)\fP
9090
abs(std::valarray) applies the function std::abs to each element of valarray
91-
\fI(function template)\fP
91+
\fI(function template)\fP
9292
C documentation for
9393
fabs

man/std::abs(int),std::labs,std::llabs,std::imaxabs.3

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
.TH std::abs(int),std::labs,std::llabs,std::imaxabs 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::abs(int),std::labs,std::llabs,std::imaxabs 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::abs(int),std::labs,std::llabs,std::imaxabs \- std::abs(int),std::labs,std::llabs,std::imaxabs
44

55
.SH Synopsis
66
Defined in header <cstdlib>
77
Defined in header <cmath> \fI(since C++17)\fP
8-
int abs( int n );
9-
long abs( long n );
8+
int abs( int n );
9+
long abs( long n );
1010
long long abs( long long n ); \fI(since C++11)\fP
1111
Defined in header <cstdlib>
12-
long labs( long n );
12+
long labs( long n );
1313
long long llabs( long long n ); \fI(since C++11)\fP
1414
Defined in header <cinttypes>
1515
std::intmax_t abs( std::intmax_t n ); \fI(since C++11)\fP
@@ -40,12 +40,12 @@ std::abs(int),std::labs,std::llabs,std::imaxabs \- std::abs(int),std::labs,std::
4040
#include <iostream>
4141
#include <cstdlib>
4242
#include <climits>
43-
43+
4444
int main()
4545
{
4646
std::cout << "abs(+3) = " << std::abs(3) << '\\n'
4747
<< "abs(-3) = " << std::abs(-3) << '\\n';
48-
48+
4949
// std::cout << abs(INT_MIN)); // undefined behavior on 2's complement systems
5050
}
5151

@@ -57,11 +57,11 @@ std::abs(int),std::labs,std::llabs,std::imaxabs \- std::abs(int),std::labs,std::
5757
.SH See also
5858

5959
abs(float) absolute value of a floating point value (|x|)
60-
fabs \fI(function)\fP
60+
fabs \fI(function)\fP
6161
abs(std::complex) returns the magnitude of a complex number
62-
\fI(function template)\fP
62+
\fI(function template)\fP
6363
abs(std::valarray) applies the function std::abs to each element of valarray
64-
\fI(function template)\fP
64+
\fI(function template)\fP
6565
C documentation for
6666
abs,
6767
labs,

man/std::abs(std::complex).3

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH std::abs(std::complex) 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::abs(std::complex) 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::abs(std::complex) \- std::abs(std::complex)
44

@@ -28,7 +28,7 @@ std::abs(std::complex) \- std::abs(std::complex)
2828

2929
#include <iostream>
3030
#include <complex>
31-
31+
3232
int main()
3333
{
3434
std::complex<double> z(1, 1);
@@ -43,23 +43,23 @@ std::abs(std::complex) \- std::abs(std::complex)
4343
.SH See also
4444

4545
arg returns the phase angle
46-
\fI(function template)\fP
46+
\fI(function template)\fP
4747
polar constructs a complex number from magnitude and phase angle
48-
\fI(function template)\fP
48+
\fI(function template)\fP
4949
abs(int)
5050
labs computes absolute value of an integral value (|x|)
51-
llabs \fI(function)\fP
51+
llabs \fI(function)\fP
5252
\fI(C++11)\fP
5353
abs(float) absolute value of a floating point value (|x|)
54-
fabs \fI(function)\fP
54+
fabs \fI(function)\fP
5555
computes square root of the sum of the squares of two given
5656
numbers (
5757
hypot √
5858
\fI(C++11)\fP x2
5959
+y2
6060
)
61-
\fI(function)\fP
61+
\fI(function)\fP
6262
abs(std::valarray) applies the function std::abs to each element of valarray
63-
\fI(function template)\fP
63+
\fI(function template)\fP
6464
C documentation for
6565
cabs

man/std::abs(std::valarray).3

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH std::abs(std::valarray) 3 "2017.04.02" "http://cppreference.com" "C++ Standard Libary"
1+
.TH std::abs(std::valarray) 3 "2018.03.28" "http://cppreference.com" "C++ Standard Libary"
22
.SH NAME
33
std::abs(std::valarray) \- std::abs(std::valarray)
44

@@ -25,16 +25,17 @@ std::abs(std::valarray) \- std::abs(std::valarray)
2525
The function can be implemented with the return type different from std::valarray.
2626
In this case, the replacement type has the following properties:
2727

28-
* All const member functions of std::valarray are provided.
29-
* std::valarray, std::slice_array, std::gslice_array, std::mask_array and
30-
std::indirect_array can be constructed from the replacement type.
31-
* All functions accepting an argument of type const std::valarray&
32-
except begin() and end()
33-
\fI(since C++14)\fP should also accept the replacement type.
34-
* All functions accepting two arguments of type const std::valarray& should accept
35-
every combination of const std::valarray& and the replacement type.
36-
* The return type does not add more than two levels of template nesting over the
37-
most deeply-nested argument type.
28+
* All const member functions of std::valarray are provided.
29+
* std::valarray, std::slice_array, std::gslice_array, std::mask_array and
30+
std::indirect_array can be constructed from the replacement type.
31+
* All functions accepting an argument of type const std::valarray&
32+
except begin() and end()
33+
\fI(since C++14)\fP should also accept the replacement type.
34+
* All functions accepting two arguments of type const std::valarray&
35+
should accept every combination of const std::valarray& and the
36+
replacement type.
37+
* The return type does not add more than two levels of template nesting
38+
over the most deeply-nested argument type.
3839

3940
.SH Possible implementation
4041

@@ -55,7 +56,7 @@ std::abs(std::valarray) \- std::abs(std::valarray)
5556

5657
#include <valarray>
5758
#include <iostream>
58-
59+
5960
int main()
6061
{
6162
std::valarray<int> v{1, -2, 3, -4, 5, -6, 7, -8};
@@ -74,9 +75,9 @@ std::abs(std::valarray) \- std::abs(std::valarray)
7475

7576
abs(int)
7677
labs computes absolute value of an integral value (|x|)
77-
llabs \fI(function)\fP
78+
llabs \fI(function)\fP
7879
\fI(C++11)\fP
7980
abs(float) absolute value of a floating point value (|x|)
80-
fabs \fI(function)\fP
81+
fabs \fI(function)\fP
8182
abs(std::complex) returns the magnitude of a complex number
82-
\fI(function template)\fP
83+
\fI(function template)\fP

0 commit comments

Comments
 (0)