From 4631716f663db53014d93f42d058d6b3150f08c3 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 10 Nov 2022 18:49:15 +0000 Subject: [PATCH] s/constructable/constructible/ [CI SKIP] --- doc/concepts/concepts.qbk | 6 +++--- doc/constants/constants.qbk | 10 +++++----- doc/html/math_toolkit/constants_faq.html | 4 ++-- doc/html/math_toolkit/dist_concept.html | 2 +- doc/html/math_toolkit/real_concepts.html | 4 ++-- doc/html/math_toolkit/result_type.html | 2 +- doc/html/math_toolkit/tutorial/user_def.html | 8 ++++---- doc/overview/result_type_calc.qbk | 2 +- include/boost/math/concepts/distributions.hpp | 2 +- include/boost/math/differentiation/autodiff.hpp | 4 ++-- include/boost/math/tools/test_value.hpp | 6 +++--- test/test_value.hpp | 6 +++--- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/doc/concepts/concepts.qbk b/doc/concepts/concepts.qbk index ade89ef85..afc95afb4 100644 --- a/doc/concepts/concepts.qbk +++ b/doc/concepts/concepts.qbk @@ -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] diff --git a/doc/constants/constants.qbk b/doc/constants/constants.qbk index fc04fde8c..24092adf5 100644 --- a/doc/constants/constants.qbk +++ b/doc/constants/constants.qbk @@ -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 diff --git a/doc/html/math_toolkit/constants_faq.html b/doc/html/math_toolkit/constants_faq.html index d018b4d27..6edaed5aa 100644 --- a/doc/html/math_toolkit/constants_faq.html +++ b/doc/html/math_toolkit/constants_faq.html @@ -226,8 +226,8 @@ digits). 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 + For types with precision greater than a long double, 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 since diff --git a/doc/html/math_toolkit/dist_concept.html b/doc/html/math_toolkit/dist_concept.html index 9383c7e28..27d04c221 100644 --- a/doc/html/math_toolkit/dist_concept.html +++ b/doc/html/math_toolkit/dist_concept.html @@ -131,7 +131,7 @@

- Distribution types are copy constructable. + Distribution types are copy constructible.

diff --git a/doc/html/math_toolkit/real_concepts.html b/doc/html/math_toolkit/real_concepts.html index 1fcc529b6..e3e6fd9d8 100644 --- a/doc/html/math_toolkit/real_concepts.html +++ b/doc/html/math_toolkit/real_concepts.html @@ -103,7 +103,7 @@

- RealType is copy constructable. + RealType is copy constructible.

@@ -120,7 +120,7 @@

- RealType is copy constructable from the arithmetic types. + RealType is copy constructible from the arithmetic types.

diff --git a/doc/html/math_toolkit/result_type.html b/doc/html/math_toolkit/result_type.html index f91148460..485b0d48b 100644 --- a/doc/html/math_toolkit/result_type.html +++ b/doc/html/math_toolkit/result_type.html @@ -65,7 +65,7 @@
  • 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.
  • diff --git a/doc/html/math_toolkit/tutorial/user_def.html b/doc/html/math_toolkit/tutorial/user_def.html index dcfe30aa8..ce95812e4 100644 --- a/doc/html/math_toolkit/tutorial/user_def.html +++ b/doc/html/math_toolkit/tutorial/user_def.html @@ -57,14 +57,14 @@ 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 + 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 + 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 @@ -72,7 +72,7 @@
    • If the precision is less than or equal to that of a long double - and the type is constructable from a long + 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 @@ -80,7 +80,7 @@
    • 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 then our code returns + supports such a type) 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. diff --git a/doc/overview/result_type_calc.qbk b/doc/overview/result_type_calc.qbk index b1d3dcd76..9a98027df 100644 --- a/doc/overview/result_type_calc.qbk +++ b/doc/overview/result_type_calc.qbk @@ -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`. diff --git a/include/boost/math/concepts/distributions.hpp b/include/boost/math/concepts/distributions.hpp index d6561606a..538bbe702 100644 --- a/include/boost/math/concepts/distributions.hpp +++ b/include/boost/math/concepts/distributions.hpp @@ -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, diff --git a/include/boost/math/differentiation/autodiff.hpp b/include/boost/math/differentiation/autodiff.hpp index e2376eed2..1286326c2 100644 --- a/include/boost/math/differentiation/autodiff.hpp +++ b/include/boost/math/differentiation/autodiff.hpp @@ -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 fvar(fvar 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 diff --git a/include/boost/math/tools/test_value.hpp b/include/boost/math/tools/test_value.hpp index fce7be6ae..2cdc1a02a 100644 --- a/include/boost/math/tools/test_value.hpp +++ b/include/boost/math/tools/test_value.hpp @@ -68,7 +68,7 @@ inline T create_test_value(largest_float val, const char*, const std::true_type& template 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 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; diff --git a/test/test_value.hpp b/test/test_value.hpp index 2aabc0d7f..5120633cd 100644 --- a/test/test_value.hpp +++ b/test/test_value.hpp @@ -66,7 +66,7 @@ inline T create_test_value(largest_float val, const char*, const std::true_type& template 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 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;