From deab1743de33abfd718c4e47e80e7d0336a33b1a Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 17:45:20 +0800 Subject: [PATCH 1/6] Add backticks in all `` class references --- docs/standard-library/domain-error-class.md | 8 ++++---- docs/standard-library/invalid-argument-class.md | 8 ++++---- docs/standard-library/length-error-class.md | 8 ++++---- docs/standard-library/logic-error-class.md | 8 ++++---- docs/standard-library/out-of-range-class.md | 8 ++++---- docs/standard-library/overflow-error-class.md | 8 ++++---- docs/standard-library/range-error-class.md | 10 +++++----- docs/standard-library/runtime-error-class.md | 8 ++++---- docs/standard-library/underflow-error-class.md | 8 ++++---- 9 files changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index fe6bc72dfe1..18a25cccfcf 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::domain_error"] helpviewer_keywords: ["domain_error class"] ms.assetid: a1d8245d-61c2-4d1e-973f-073bd5dd5fa3 --- -# domain_error Class +# `domain_error` Class The class serves as the base class for all exceptions thrown to report a domain error (as in mathematics, not networking). @@ -59,11 +59,11 @@ Type: class std::domain_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[logic_error Class](../standard-library/logic-error-class.md)\ +[`logic_error` Class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index 9a3babf927a..e6034d84aef 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::invalid_argument"] helpviewer_keywords: ["invalid_argument class"] ms.assetid: af6c227d-ad7c-4e63-9dee-67af81d83506 --- -# invalid_argument Class +# `invalid_argument` Class The class serves as the base class for all exceptions thrown to report an invalid argument. @@ -57,11 +57,11 @@ Type: class std::invalid_argument ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[logic_error Class](../standard-library/logic-error-class.md)\ +[`logic_error` Class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index 7df63ed20bc..30721427a42 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::length_error"] helpviewer_keywords: ["length_error class"] ms.assetid: d53c46c5-4626-400d-bd76-bf3e1e0f64ae --- -# length_error Class +# `length_error` Class The class serves as the base class for all exceptions thrown to report an attempt to generate an object too long to be specified. @@ -58,11 +58,11 @@ Type: class std::length_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[logic_error Class](../standard-library/logic-error-class.md)\ +[`logic_error` Class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index 63f9e82219b..eafaee25958 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::logic_error"] helpviewer_keywords: ["logic_error class"] ms.assetid: b290d73d-94e1-4288-af86-2bb5d71f677a --- -# logic_error Class +# `logic_error` Class The class serves as the base class for all exceptions thrown to report errors presumably detectable before the program executes, such as violations of logical preconditions. @@ -57,11 +57,11 @@ Type: class std::logic_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[exception Class](../standard-library/exception-class.md)\ +[`exception` Class](../standard-library/exception-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 0fb2d3cb673..6558b9baffe 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::out_of_range"] helpviewer_keywords: ["out_of_range class"] ms.assetid: d0e14dc0-065e-4666-9ac9-51e52223c503 --- -# out_of_range Class +# `out_of_range` Class The class serves as the base class for all exceptions thrown to report an argument that is out of its valid range. @@ -60,11 +60,11 @@ Type: class std::out_of_range ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[logic_error Class](../standard-library/logic-error-class.md)\ +[`logic_error` Class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index 0ba3c520d48..6744f7ab4de 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::overflow_error"] helpviewer_keywords: ["overflow_error class"] ms.assetid: bae7128d-e36b-4a45-84f1-2f89da441d20 --- -# overflow_error Class +# `overflow_error` Class The class serves as the base class for all exceptions thrown to report an arithmetic overflow. @@ -60,11 +60,11 @@ Type: class std::overflow_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[runtime_error Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` Class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/range-error-class.md b/docs/standard-library/range-error-class.md index a8b6485bcf3..51632bec296 100644 --- a/docs/standard-library/range-error-class.md +++ b/docs/standard-library/range-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::range_error"] helpviewer_keywords: ["range_error class"] ms.assetid: 8afb3e88-fc49-4213-b096-ed63d7aea37c --- -# range_error Class +# `range_error` Class The class serves as the base class for all exceptions thrown to report a range error (as in mathematics, not iterators). @@ -22,7 +22,7 @@ public: ## Remarks -The value returned by [what](../standard-library/exception-class.md) is a copy of `message.data()`. For more information, see [basic_string::data](../standard-library/basic-string-class.md#data). +The value returned by [`what`](../standard-library/exception-class.md) is a copy of `message.data()`. For more information, see [`basic_string::data`](../standard-library/basic-string-class.md#data). ## Example @@ -55,11 +55,11 @@ Type: class std::range_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[runtime_error Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` Class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index e71e28e5ddf..e3281edc1df 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::runtime_error"] helpviewer_keywords: ["runtime_error class"] ms.assetid: 4d0227bf-847b-45a2-a320-2351ebf98368 --- -# runtime_error Class +# `runtime_error` Class The class serves as the base class for all exceptions thrown to report errors presumably detectable only when the program executes. @@ -57,11 +57,11 @@ Type: class std::runtime_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[exception Class](../standard-library/exception-class.md)\ +[`exception` Class](../standard-library/exception-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index eee569a3f7b..fb27348ae17 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -6,7 +6,7 @@ f1_keywords: ["stdexcept/std::underflow_error"] helpviewer_keywords: ["underflow_error class"] ms.assetid: d632f1f9-9c6c-4954-b96b-03041bfab22d --- -# underflow_error Class +# `underflow_error` Class The class serves as the base class for all exceptions thrown to report an arithmetic underflow. @@ -59,11 +59,11 @@ Type: class std::underflow_error ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## See also -[runtime_error Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` Class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) From af365e4c78cf6b18a20e381f9c8f7aa200126809 Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 17:54:04 +0800 Subject: [PATCH 2/6] Split output into another code block for all `` class references --- docs/standard-library/domain-error-class.md | 5 +++-- docs/standard-library/invalid-argument-class.md | 5 +++-- docs/standard-library/length-error-class.md | 5 +++-- docs/standard-library/logic-error-class.md | 5 +++-- docs/standard-library/out-of-range-class.md | 5 +++-- docs/standard-library/overflow-error-class.md | 5 +++-- docs/standard-library/range-error-class.md | 5 +++-- docs/standard-library/runtime-error-class.md | 5 +++-- docs/standard-library/underflow-error-class.md | 5 +++-- 9 files changed, 27 insertions(+), 18 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index 18a25cccfcf..1affd02c32a 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -51,10 +51,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: Your domain is in error! Type: class std::domain_error -*/ ``` ## Requirements diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index e6034d84aef..6cfa99b7da6 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -49,10 +49,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: invalid bitset char Type: class std::invalid_argument -*/ ``` ## Requirements diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index 30721427a42..f340c17be62 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -50,10 +50,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: vector too long Type: class std::length_error -*/ ``` ## Requirements diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index eafaee25958..032ba515aba 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -49,10 +49,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: Does not compute! Type: class std::logic_error -*/ ``` ## Requirements diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 6558b9baffe..4094107ab89 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -52,10 +52,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: invalid string position Type: class std::out_of_range -*/ ``` ## Requirements diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index 6744f7ab4de..d5193d7df92 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -52,10 +52,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: bitset overflow Type: class std::overflow_error -*/ ``` ## Requirements diff --git a/docs/standard-library/range-error-class.md b/docs/standard-library/range-error-class.md index 51632bec296..c7471ab1571 100644 --- a/docs/standard-library/range-error-class.md +++ b/docs/standard-library/range-error-class.md @@ -47,10 +47,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: The range is in error! Type: class std::range_error -*/ ``` ## Requirements diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index e3281edc1df..a5367a1a939 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -49,10 +49,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: bad locale name Type: class std::runtime_error -*/ ``` ## Requirements diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index fb27348ae17..9f5e9ae9bfb 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -51,10 +51,11 @@ int main() cerr << "Type: " << typeid(e).name() << endl; } } -/* Output: +``` + +```Output Caught: The number's a bit small, captain! Type: class std::underflow_error -*/ ``` ## Requirements From 78718da229b64ee12a8d05c0e4805ef4d75cad93 Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 17:56:48 +0800 Subject: [PATCH 3/6] Change "Class" to "class" in all `` class references --- docs/standard-library/domain-error-class.md | 8 ++++---- docs/standard-library/invalid-argument-class.md | 8 ++++---- docs/standard-library/length-error-class.md | 8 ++++---- docs/standard-library/logic-error-class.md | 8 ++++---- docs/standard-library/out-of-range-class.md | 8 ++++---- docs/standard-library/overflow-error-class.md | 8 ++++---- docs/standard-library/range-error-class.md | 8 ++++---- docs/standard-library/runtime-error-class.md | 8 ++++---- docs/standard-library/underflow-error-class.md | 8 ++++---- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index 1affd02c32a..deecb530dd2 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: domain_error Class" -title: "domain_error Class" +description: "Learn more about: domain_error class" +title: "domain_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::domain_error"] helpviewer_keywords: ["domain_error class"] ms.assetid: a1d8245d-61c2-4d1e-973f-073bd5dd5fa3 --- -# `domain_error` Class +# `domain_error` class The class serves as the base class for all exceptions thrown to report a domain error (as in mathematics, not networking). @@ -66,5 +66,5 @@ Type: class std::domain_error ## See also -[`logic_error` Class](../standard-library/logic-error-class.md)\ +[`logic_error` class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index 6cfa99b7da6..4243101510d 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: invalid_argument Class" -title: "invalid_argument Class" +description: "Learn more about: invalid_argument class" +title: "invalid_argument class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::invalid_argument"] helpviewer_keywords: ["invalid_argument class"] ms.assetid: af6c227d-ad7c-4e63-9dee-67af81d83506 --- -# `invalid_argument` Class +# `invalid_argument` class The class serves as the base class for all exceptions thrown to report an invalid argument. @@ -64,5 +64,5 @@ Type: class std::invalid_argument ## See also -[`logic_error` Class](../standard-library/logic-error-class.md)\ +[`logic_error` class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index f340c17be62..93a9ea92de4 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: length_error Class" -title: "length_error Class" +description: "Learn more about: length_error class" +title: "length_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::length_error"] helpviewer_keywords: ["length_error class"] ms.assetid: d53c46c5-4626-400d-bd76-bf3e1e0f64ae --- -# `length_error` Class +# `length_error` class The class serves as the base class for all exceptions thrown to report an attempt to generate an object too long to be specified. @@ -65,5 +65,5 @@ Type: class std::length_error ## See also -[`logic_error` Class](../standard-library/logic-error-class.md)\ +[`logic_error` class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index 032ba515aba..957f80c7b2b 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: logic_error Class" -title: "logic_error Class" +description: "Learn more about: logic_error class" +title: "logic_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::logic_error"] helpviewer_keywords: ["logic_error class"] ms.assetid: b290d73d-94e1-4288-af86-2bb5d71f677a --- -# `logic_error` Class +# `logic_error` class The class serves as the base class for all exceptions thrown to report errors presumably detectable before the program executes, such as violations of logical preconditions. @@ -64,5 +64,5 @@ Type: class std::logic_error ## See also -[`exception` Class](../standard-library/exception-class.md)\ +[`exception` class](../standard-library/exception-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 4094107ab89..98f8ffd101d 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: out_of_range Class" -title: "out_of_range Class" +description: "Learn more about: out_of_range class" +title: "out_of_range class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::out_of_range"] helpviewer_keywords: ["out_of_range class"] ms.assetid: d0e14dc0-065e-4666-9ac9-51e52223c503 --- -# `out_of_range` Class +# `out_of_range` class The class serves as the base class for all exceptions thrown to report an argument that is out of its valid range. @@ -67,5 +67,5 @@ Type: class std::out_of_range ## See also -[`logic_error` Class](../standard-library/logic-error-class.md)\ +[`logic_error` class](../standard-library/logic-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index d5193d7df92..13b8da626c7 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: overflow_error Class" -title: "overflow_error Class" +description: "Learn more about: overflow_error class" +title: "overflow_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::overflow_error"] helpviewer_keywords: ["overflow_error class"] ms.assetid: bae7128d-e36b-4a45-84f1-2f89da441d20 --- -# `overflow_error` Class +# `overflow_error` class The class serves as the base class for all exceptions thrown to report an arithmetic overflow. @@ -67,5 +67,5 @@ Type: class std::overflow_error ## See also -[`runtime_error` Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/range-error-class.md b/docs/standard-library/range-error-class.md index c7471ab1571..b4f54c2087d 100644 --- a/docs/standard-library/range-error-class.md +++ b/docs/standard-library/range-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: range_error Class" -title: "range_error Class" +description: "Learn more about: range_error class" +title: "range_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::range_error"] helpviewer_keywords: ["range_error class"] ms.assetid: 8afb3e88-fc49-4213-b096-ed63d7aea37c --- -# `range_error` Class +# `range_error` class The class serves as the base class for all exceptions thrown to report a range error (as in mathematics, not iterators). @@ -62,5 +62,5 @@ Type: class std::range_error ## See also -[`runtime_error` Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index a5367a1a939..108070bf791 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: runtime_error Class" -title: "runtime_error Class" +description: "Learn more about: runtime_error class" +title: "runtime_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::runtime_error"] helpviewer_keywords: ["runtime_error class"] ms.assetid: 4d0227bf-847b-45a2-a320-2351ebf98368 --- -# `runtime_error` Class +# `runtime_error` class The class serves as the base class for all exceptions thrown to report errors presumably detectable only when the program executes. @@ -64,5 +64,5 @@ Type: class std::runtime_error ## See also -[`exception` Class](../standard-library/exception-class.md)\ +[`exception` class](../standard-library/exception-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index 9f5e9ae9bfb..87098ec04dc 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -1,12 +1,12 @@ --- -description: "Learn more about: underflow_error Class" -title: "underflow_error Class" +description: "Learn more about: underflow_error class" +title: "underflow_error class" ms.date: "09/09/2021" f1_keywords: ["stdexcept/std::underflow_error"] helpviewer_keywords: ["underflow_error class"] ms.assetid: d632f1f9-9c6c-4954-b96b-03041bfab22d --- -# `underflow_error` Class +# `underflow_error` class The class serves as the base class for all exceptions thrown to report an arithmetic underflow. @@ -66,5 +66,5 @@ Type: class std::underflow_error ## See also -[`runtime_error` Class](../standard-library/runtime-error-class.md)\ +[`runtime_error` class](../standard-library/runtime-error-class.md)\ [Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) From b53ea75d4bc62344e71d730263c0c9e2678be78d Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 18:05:04 +0800 Subject: [PATCH 4/6] Simplify redundant relative links in all `` class references --- docs/standard-library/domain-error-class.md | 6 +++--- docs/standard-library/invalid-argument-class.md | 6 +++--- docs/standard-library/length-error-class.md | 6 +++--- docs/standard-library/logic-error-class.md | 6 +++--- docs/standard-library/out-of-range-class.md | 6 +++--- docs/standard-library/overflow-error-class.md | 6 +++--- docs/standard-library/range-error-class.md | 6 +++--- docs/standard-library/runtime-error-class.md | 6 +++--- docs/standard-library/underflow-error-class.md | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index deecb530dd2..ae2ee7468d3 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). `domain_error` isn't thrown by any functions in the Microsoft implementation of the C++ Standard Library, but it might be thrown by third-party libraries or user code. @@ -66,5 +66,5 @@ Type: class std::domain_error ## See also -[`logic_error` class](../standard-library/logic-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`logic_error` class](logic-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index 4243101510d..61fec61895c 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -64,5 +64,5 @@ Type: class std::invalid_argument ## See also -[`logic_error` class](../standard-library/logic-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`logic_error` class](logic-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index 93a9ea92de4..6cfb2bd9640 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -65,5 +65,5 @@ Type: class std::length_error ## See also -[`logic_error` class](../standard-library/logic-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`logic_error` class](logic-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index 957f80c7b2b..6dfedeed2df 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -64,5 +64,5 @@ Type: class std::logic_error ## See also -[`exception` class](../standard-library/exception-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`exception` class](exception-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 98f8ffd101d..11c837e5500 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -67,5 +67,5 @@ Type: class std::out_of_range ## See also -[`logic_error` class](../standard-library/logic-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`logic_error` class](logic-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index 13b8da626c7..32ddd799899 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -67,5 +67,5 @@ Type: class std::overflow_error ## See also -[`runtime_error` class](../standard-library/runtime-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`runtime_error` class](runtime-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/range-error-class.md b/docs/standard-library/range-error-class.md index b4f54c2087d..a9fd6135bc2 100644 --- a/docs/standard-library/range-error-class.md +++ b/docs/standard-library/range-error-class.md @@ -22,7 +22,7 @@ public: ## Remarks -The value returned by [`what`](../standard-library/exception-class.md) is a copy of `message.data()`. For more information, see [`basic_string::data`](../standard-library/basic-string-class.md#data). +The value returned by [`what`](exception-class.md) is a copy of `message.data()`. For more information, see [`basic_string::data`](basic-string-class.md#data). ## Example @@ -62,5 +62,5 @@ Type: class std::range_error ## See also -[`runtime_error` class](../standard-library/runtime-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`runtime_error` class](runtime-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index 108070bf791..2ffcb27f3ff 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). ## Example @@ -64,5 +64,5 @@ Type: class std::runtime_error ## See also -[`exception` class](../standard-library/exception-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`exception` class](exception-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index 87098ec04dc..a07486f555d 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -24,7 +24,7 @@ public: ## Remarks -The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data). +The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](exception-class.md) and [`data`](basic-string-class.md#data). `underflow_error` isn't thrown by any functions in the Microsoft implementation of the C++ Standard Library, but it might be thrown by third-party libraries or user code. @@ -66,5 +66,5 @@ Type: class std::underflow_error ## See also -[`runtime_error` class](../standard-library/runtime-error-class.md)\ -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) +[`runtime_error` class](runtime-error-class.md)\ +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) From b292e17de66f0d0101d2a16c5055c2d37ee8ee39 Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 18:11:08 +0800 Subject: [PATCH 5/6] Remove trailing empty syntax lines in all `` class references --- docs/standard-library/domain-error-class.md | 1 - docs/standard-library/invalid-argument-class.md | 1 - docs/standard-library/length-error-class.md | 1 - docs/standard-library/logic-error-class.md | 1 - docs/standard-library/out-of-range-class.md | 1 - docs/standard-library/overflow-error-class.md | 1 - docs/standard-library/runtime-error-class.md | 1 - docs/standard-library/underflow-error-class.md | 1 - 8 files changed, 8 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index ae2ee7468d3..a7ec04a0b5a 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -18,7 +18,6 @@ public: explicit domain_error(const string& message); explicit domain_error(const char *message); - }; ``` diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index 61fec61895c..9eb24629250 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -18,7 +18,6 @@ public: explicit invalid_argument(const string& message); explicit invalid_argument(const char *message); - }; ``` diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index 6cfb2bd9640..aa7963f1c21 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -18,7 +18,6 @@ public: explicit length_error(const string& message); explicit length_error(const char *message); - }; ``` diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index 6dfedeed2df..a3f6de0ad30 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -18,7 +18,6 @@ public: explicit logic_error(const string& message); explicit logic_error(const char *message); - }; ``` diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 11c837e5500..8781b499f7e 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -18,7 +18,6 @@ public: explicit out_of_range(const string& message); explicit out_of_range(const char *message); - }; ``` diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index 32ddd799899..30373fb33d3 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -18,7 +18,6 @@ public: explicit overflow_error(const string& message); explicit overflow_error(const char *message); - }; ``` diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index 2ffcb27f3ff..575a981066a 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -18,7 +18,6 @@ public: explicit runtime_error(const string& message); explicit runtime_error(const char *message); - }; ``` diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index a07486f555d..f0db72e1561 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -18,7 +18,6 @@ public: explicit underflow_error(const string& message); explicit underflow_error(const char *message); - }; ``` From cad9532de44db0dcce74437d88bf020fcdd5bf76 Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Wed, 17 Sep 2025 18:13:16 +0800 Subject: [PATCH 6/6] Update metadata in all `` class references --- docs/standard-library/domain-error-class.md | 5 ++--- docs/standard-library/invalid-argument-class.md | 5 ++--- docs/standard-library/length-error-class.md | 5 ++--- docs/standard-library/logic-error-class.md | 5 ++--- docs/standard-library/out-of-range-class.md | 5 ++--- docs/standard-library/overflow-error-class.md | 5 ++--- docs/standard-library/range-error-class.md | 5 ++--- docs/standard-library/runtime-error-class.md | 5 ++--- docs/standard-library/underflow-error-class.md | 5 ++--- 9 files changed, 18 insertions(+), 27 deletions(-) diff --git a/docs/standard-library/domain-error-class.md b/docs/standard-library/domain-error-class.md index a7ec04a0b5a..c976e9d9d67 100644 --- a/docs/standard-library/domain-error-class.md +++ b/docs/standard-library/domain-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: domain_error class" title: "domain_error class" -ms.date: "09/09/2021" +description: "Learn more about: domain_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::domain_error"] helpviewer_keywords: ["domain_error class"] -ms.assetid: a1d8245d-61c2-4d1e-973f-073bd5dd5fa3 --- # `domain_error` class diff --git a/docs/standard-library/invalid-argument-class.md b/docs/standard-library/invalid-argument-class.md index 9eb24629250..f2a22f505cb 100644 --- a/docs/standard-library/invalid-argument-class.md +++ b/docs/standard-library/invalid-argument-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: invalid_argument class" title: "invalid_argument class" -ms.date: "09/09/2021" +description: "Learn more about: invalid_argument class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::invalid_argument"] helpviewer_keywords: ["invalid_argument class"] -ms.assetid: af6c227d-ad7c-4e63-9dee-67af81d83506 --- # `invalid_argument` class diff --git a/docs/standard-library/length-error-class.md b/docs/standard-library/length-error-class.md index aa7963f1c21..7230d8b628f 100644 --- a/docs/standard-library/length-error-class.md +++ b/docs/standard-library/length-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: length_error class" title: "length_error class" -ms.date: "09/09/2021" +description: "Learn more about: length_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::length_error"] helpviewer_keywords: ["length_error class"] -ms.assetid: d53c46c5-4626-400d-bd76-bf3e1e0f64ae --- # `length_error` class diff --git a/docs/standard-library/logic-error-class.md b/docs/standard-library/logic-error-class.md index a3f6de0ad30..6d096245bda 100644 --- a/docs/standard-library/logic-error-class.md +++ b/docs/standard-library/logic-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: logic_error class" title: "logic_error class" -ms.date: "09/09/2021" +description: "Learn more about: logic_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::logic_error"] helpviewer_keywords: ["logic_error class"] -ms.assetid: b290d73d-94e1-4288-af86-2bb5d71f677a --- # `logic_error` class diff --git a/docs/standard-library/out-of-range-class.md b/docs/standard-library/out-of-range-class.md index 8781b499f7e..cf5e79dfc81 100644 --- a/docs/standard-library/out-of-range-class.md +++ b/docs/standard-library/out-of-range-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: out_of_range class" title: "out_of_range class" -ms.date: "09/09/2021" +description: "Learn more about: out_of_range class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::out_of_range"] helpviewer_keywords: ["out_of_range class"] -ms.assetid: d0e14dc0-065e-4666-9ac9-51e52223c503 --- # `out_of_range` class diff --git a/docs/standard-library/overflow-error-class.md b/docs/standard-library/overflow-error-class.md index 30373fb33d3..b4291d01a31 100644 --- a/docs/standard-library/overflow-error-class.md +++ b/docs/standard-library/overflow-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: overflow_error class" title: "overflow_error class" -ms.date: "09/09/2021" +description: "Learn more about: overflow_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::overflow_error"] helpviewer_keywords: ["overflow_error class"] -ms.assetid: bae7128d-e36b-4a45-84f1-2f89da441d20 --- # `overflow_error` class diff --git a/docs/standard-library/range-error-class.md b/docs/standard-library/range-error-class.md index a9fd6135bc2..35559c39d45 100644 --- a/docs/standard-library/range-error-class.md +++ b/docs/standard-library/range-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: range_error class" title: "range_error class" -ms.date: "09/09/2021" +description: "Learn more about: range_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::range_error"] helpviewer_keywords: ["range_error class"] -ms.assetid: 8afb3e88-fc49-4213-b096-ed63d7aea37c --- # `range_error` class diff --git a/docs/standard-library/runtime-error-class.md b/docs/standard-library/runtime-error-class.md index 575a981066a..9ae07afd607 100644 --- a/docs/standard-library/runtime-error-class.md +++ b/docs/standard-library/runtime-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: runtime_error class" title: "runtime_error class" -ms.date: "09/09/2021" +description: "Learn more about: runtime_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::runtime_error"] helpviewer_keywords: ["runtime_error class"] -ms.assetid: 4d0227bf-847b-45a2-a320-2351ebf98368 --- # `runtime_error` class diff --git a/docs/standard-library/underflow-error-class.md b/docs/standard-library/underflow-error-class.md index f0db72e1561..3b1d405babc 100644 --- a/docs/standard-library/underflow-error-class.md +++ b/docs/standard-library/underflow-error-class.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: underflow_error class" title: "underflow_error class" -ms.date: "09/09/2021" +description: "Learn more about: underflow_error class" +ms.date: 09/09/2021 f1_keywords: ["stdexcept/std::underflow_error"] helpviewer_keywords: ["underflow_error class"] -ms.assetid: d632f1f9-9c6c-4954-b96b-03041bfab22d --- # `underflow_error` class