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
33std::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