mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
s/constructable/constructible/
[CI SKIP]
This commit is contained in:
@@ -285,9 +285,9 @@ of type `const RealType`, and /ca/ is an object of type `const arithmetic-type`
|
||||
[table
|
||||
[[Expression][Result Type][Notes]]
|
||||
[[`RealType(cr)`][RealType]
|
||||
[RealType is copy constructable.]]
|
||||
[RealType is copy constructible.]]
|
||||
[[`RealType(ca)`][RealType]
|
||||
[RealType is copy constructable from the arithmetic types.]]
|
||||
[RealType is copy constructible from the arithmetic types.]]
|
||||
[[`r = cr`][RealType&][Assignment operator.]]
|
||||
[[`r = ca`][RealType&][Assignment operator from the arithmetic types.]]
|
||||
[[`r += cr`][RealType&][Adds cr to r.]]
|
||||
@@ -468,7 +468,7 @@ object of a type convertible to `RealType`.
|
||||
[[DistributionType::policy_type][RealType]
|
||||
[The __Policy to use when evaluating functions that depend on this distribution.]]
|
||||
[[d = cd][Distribution&][Distribution types are assignable.]]
|
||||
[[Distribution(cd)][Distribution][Distribution types are copy constructable.]]
|
||||
[[Distribution(cd)][Distribution][Distribution types are copy constructible.]]
|
||||
[[pdf(cd, cr)][RealType][Returns the PDF of the distribution.]]
|
||||
[[cdf(cd, cr)][RealType][Returns the CDF of the distribution.]]
|
||||
[[cdf(complement(cd, cr))][RealType]
|
||||
|
||||
@@ -163,17 +163,17 @@ However, since the precision of the user-defined type may be much greater than t
|
||||
of the built-in floating point types, how the value returned is created is as follows:
|
||||
|
||||
* If the precision of the type is known at compile time:
|
||||
* If the precision is less than or equal to that of a `float` and the type is constructable from a `float`
|
||||
* If the precision is less than or equal to that of a `float` and the type is constructible from a `float`
|
||||
then our code returns a `float` literal. If the user-defined type is a literal type
|
||||
then the function call that returns the constant will be a `constexp`.
|
||||
* If the precision is less than or equal to that of a `double` and the type is constructable from a `double`
|
||||
* If the precision is less than or equal to that of a `double` and the type is constructible from a `double`
|
||||
then our code returns a `double` literal. If the user-defined type is a literal type
|
||||
then the function call that returns the constant will be a `constexp`.
|
||||
* If the precision is less than or equal to that of a `long double` and the type is constructable from a `long double`
|
||||
* If the precision is less than or equal to that of a `long double` and the type is constructible from a `long double`
|
||||
then our code returns a `long double` literal. If the user-defined type is a literal type
|
||||
then the function call that returns the constant will be a `constexp`.
|
||||
* If the precision is less than or equal to that of a `__float128` (and the compiler supports such a type)
|
||||
and the type is constructable from a `__float128`
|
||||
and the type is constructible from a `__float128`
|
||||
then our code returns a `__float128` literal. If the user-defined type is a literal type
|
||||
then the function call that returns the constant will be a `constexp`.
|
||||
* If the precision is less than 100 decimal digits, then the constant will be constructed
|
||||
@@ -610,7 +610,7 @@ accurate to at least 100 decimal digits (in practice that means at least 102 dig
|
||||
Again for consistency use scientific format with a signed exponent.
|
||||
|
||||
For types with precision greater than a long double,
|
||||
then if T is constructable `T `is constructable from a `const char*`
|
||||
then if T is constructible `T `is constructible from a `const char*`
|
||||
then it's directly constructed from the string,
|
||||
otherwise we fall back on lexical_cast to convert to type `T`.
|
||||
(Using a string is necessary because you can't use a numeric constant
|
||||
|
||||
@@ -226,8 +226,8 @@
|
||||
digits). Again for consistency use scientific format with a signed exponent.
|
||||
</p>
|
||||
<p>
|
||||
For types with precision greater than a long double, then if T is constructable
|
||||
<code class="computeroutput"><span class="identifier">T</span> </code>is constructable from a
|
||||
For types with precision greater than a long double, then if T is constructible
|
||||
<code class="computeroutput"><span class="identifier">T</span> </code>is constructible from a
|
||||
<code class="computeroutput"><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span></code> then it's directly constructed from the string,
|
||||
otherwise we fall back on lexical_cast to convert to type <code class="computeroutput"><span class="identifier">T</span></code>.
|
||||
(Using a string is necessary because you can't use a numeric constant since
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Distribution types are copy constructable.
|
||||
Distribution types are copy constructible.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
RealType is copy constructable.
|
||||
RealType is copy constructible.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,7 +120,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
RealType is copy constructable from the arithmetic types.
|
||||
RealType is copy constructible from the arithmetic types.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</li>
|
||||
<li class="listitem">
|
||||
If any of the arguments is a user-defined class type, then the result type
|
||||
is the first such class type that is constructable from all of the other
|
||||
is the first such class type that is constructible from all of the other
|
||||
argument types.
|
||||
</li>
|
||||
<li class="listitem">
|
||||
|
||||
@@ -57,14 +57,14 @@
|
||||
If the precision of the type is known at compile time:
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
|
||||
<li class="listitem">
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">float</span></code> and the type is constructable
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">float</span></code> and the type is constructible
|
||||
from a <code class="computeroutput"><span class="keyword">float</span></code> then
|
||||
our code returns a <code class="computeroutput"><span class="keyword">float</span></code>
|
||||
literal. If the user-defined type is a literal type then the function
|
||||
call that returns the constant will be a <code class="computeroutput"><span class="identifier">constexp</span></code>.
|
||||
</li>
|
||||
<li class="listitem">
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">double</span></code> and the type is constructable
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">double</span></code> and the type is constructible
|
||||
from a <code class="computeroutput"><span class="keyword">double</span></code> then
|
||||
our code returns a <code class="computeroutput"><span class="keyword">double</span></code>
|
||||
literal. If the user-defined type is a literal type then the function
|
||||
@@ -72,7 +72,7 @@
|
||||
</li>
|
||||
<li class="listitem">
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code>
|
||||
and the type is constructable from a <code class="computeroutput"><span class="keyword">long</span>
|
||||
and the type is constructible from a <code class="computeroutput"><span class="keyword">long</span>
|
||||
<span class="keyword">double</span></code> then our code returns
|
||||
a <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code>
|
||||
literal. If the user-defined type is a literal type then the function
|
||||
@@ -80,7 +80,7 @@
|
||||
</li>
|
||||
<li class="listitem">
|
||||
If the precision is less than or equal to that of a <code class="computeroutput"><span class="identifier">__float128</span></code> (and the compiler
|
||||
supports such a type) and the type is constructable from a <code class="computeroutput"><span class="identifier">__float128</span></code> then our code returns
|
||||
supports such a type) and the type is constructible from a <code class="computeroutput"><span class="identifier">__float128</span></code> then our code returns
|
||||
a <code class="computeroutput"><span class="identifier">__float128</span></code> literal.
|
||||
If the user-defined type is a literal type then the function call
|
||||
that returns the constant will be a <code class="computeroutput"><span class="identifier">constexp</span></code>.
|
||||
|
||||
@@ -26,7 +26,7 @@ further analysis.
|
||||
then it is treated as if it were of type `double` for the purposes of
|
||||
further analysis.
|
||||
# If any of the arguments is a user-defined class type, then the result type
|
||||
is the first such class type that is constructable from all of the other
|
||||
is the first such class type that is constructible from all of the other
|
||||
argument types.
|
||||
# If any of the arguments is of type `long double`, then the result is of type
|
||||
`long double`.
|
||||
|
||||
@@ -42,7 +42,7 @@ class distribution_archetype
|
||||
public:
|
||||
typedef RealType value_type;
|
||||
|
||||
distribution_archetype(const distribution_archetype&); // Copy constructable.
|
||||
distribution_archetype(const distribution_archetype&); // Copy constructible.
|
||||
distribution_archetype& operator=(const distribution_archetype&); // Assignable.
|
||||
|
||||
// There is no default constructor,
|
||||
|
||||
@@ -136,14 +136,14 @@ class fvar {
|
||||
// Initialize a variable or constant.
|
||||
fvar(root_type const&, bool const is_variable);
|
||||
|
||||
// RealType(cr) | RealType | RealType is copy constructable.
|
||||
// RealType(cr) | RealType | RealType is copy constructible.
|
||||
fvar(fvar const&) = default;
|
||||
|
||||
// Be aware of implicit casting from one fvar<> type to another by this copy constructor.
|
||||
template <typename RealType2, size_t Order2>
|
||||
fvar(fvar<RealType2, Order2> const&);
|
||||
|
||||
// RealType(ca) | RealType | RealType is copy constructable from the arithmetic types.
|
||||
// RealType(ca) | RealType | RealType is copy constructible from the arithmetic types.
|
||||
explicit fvar(root_type const&); // Initialize a constant. (No epsilon terms.)
|
||||
|
||||
template <typename RealType2>
|
||||
|
||||
@@ -68,7 +68,7 @@ inline T create_test_value(largest_float val, const char*, const std::true_type&
|
||||
template <class T>
|
||||
inline T create_test_value(largest_float, const char* str, const std::false_type&, const std::true_type&)
|
||||
{ // Construct from decimal digit string const char* @c str (ignoring long double parameter).
|
||||
// For example, extended precision or other User-Defined types which ARE constructable from a string
|
||||
// For example, extended precision or other User-Defined types which ARE constructible from a string
|
||||
// (but not from double, or long double without loss of precision).
|
||||
// (This is case for MPL parameters = false_type and T2 == true_type).
|
||||
#ifdef BOOST_MATH_INSTRUMENT_CREATE_TEST_VALUE
|
||||
@@ -80,8 +80,8 @@ inline T create_test_value(largest_float, const char* str, const std::false_type
|
||||
template <class T>
|
||||
inline T create_test_value(largest_float, const char* str, const std::false_type&, const std::false_type&)
|
||||
{ // Create test value using from lexical cast of decimal digit string const char* str.
|
||||
// For example, extended precision or other User-Defined types which are NOT constructable from a string
|
||||
// (NOR constructable from a long double).
|
||||
// For example, extended precision or other User-Defined types which are NOT constructible from a string
|
||||
// (NOR constructible from a long double).
|
||||
// (This is case T1 = false_type and T2 == false_type).
|
||||
#ifdef BOOST_MATH_INSTRUMENT_CREATE_TEST_VALUE
|
||||
create_type = 3;
|
||||
|
||||
@@ -66,7 +66,7 @@ inline T create_test_value(largest_float val, const char*, const std::true_type&
|
||||
template <class T>
|
||||
inline T create_test_value(largest_float, const char* str, const std::false_type&, const std::true_type&)
|
||||
{ // Construct from decimal digit string const char* @c str (ignoring long double parameter).
|
||||
// For example, extended precision or other User-Defined types which ARE constructable from a string
|
||||
// For example, extended precision or other User-Defined types which ARE constructible from a string
|
||||
// (but not from double, or long double without loss of precision).
|
||||
// (This is case for MPL parameters = false_type and T2 == true_type).
|
||||
#ifdef BOOST_MATH_INSTRUMENT_CREATE_TEST_VALUE
|
||||
@@ -78,8 +78,8 @@ inline T create_test_value(largest_float, const char* str, const std::false_type
|
||||
template <class T>
|
||||
inline T create_test_value(largest_float, const char* str, const std::false_type&, const std::false_type&)
|
||||
{ // Create test value using from lexical cast of decimal digit string const char* str.
|
||||
// For example, extended precision or other User-Defined types which are NOT constructable from a string
|
||||
// (NOR constructable from a long double).
|
||||
// For example, extended precision or other User-Defined types which are NOT constructible from a string
|
||||
// (NOR constructible from a long double).
|
||||
// (This is case T1 = false_type and T2 == false_type).
|
||||
#ifdef BOOST_MATH_INSTRUMENT_CREATE_TEST_VALUE
|
||||
create_type = 3;
|
||||
|
||||
Reference in New Issue
Block a user