Skip to content

Commit a81ce6c

Browse files
authored
Clean up redundant relative links in basic_string class reference
1 parent 85624a1 commit a81ce6c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/standard-library/basic-string-class.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class basic_string;
2121
### Template parameters
2222
2323
*`CharType`*\
24-
The data type of a single character to be stored in the string. The C++ Standard Library provides specializations of this class template, with the type definitions [`string`](../standard-library/string-typedefs.md#string) for elements of type `char`, [`wstring`](../standard-library/string-typedefs.md#wstring), for `wchar_t`, [`u16string`](../standard-library/string-typedefs.md#u16string) for `char16_t`, and [`u32string`](../standard-library/string-typedefs.md#u32string) for `char32_t`.
24+
The data type of a single character to be stored in the string. The C++ Standard Library provides specializations of this class template, with the type definitions [`string`](string-typedefs.md#string) for elements of type `char`, [`wstring`](string-typedefs.md#wstring), for `wchar_t`, [`u16string`](string-typedefs.md#u16string) for `char16_t`, and [`u32string`](string-typedefs.md#u32string) for `char32_t`.
2525
2626
*`Traits`*\
2727
Various important properties of the `CharType` elements in a `basic_string` specialization are described by the class `Traits`. The default value is `char_traits`<`CharType`>.
@@ -124,7 +124,7 @@ The headers that define `basic_string` also define the following [user-defined l
124124
125125
## Remarks
126126
127-
If a function is asked to generate a sequence longer than [`max_size`](#max_size) elements, the function reports a length error by throwing an object of type [`length_error`](../standard-library/length-error-class.md).
127+
If a function is asked to generate a sequence longer than [`max_size`](#max_size) elements, the function reports a length error by throwing an object of type [`length_error`](length-error-class.md).
128128
129129
References, pointers, and iterators that designate elements of the controlled sequence can become invalid after any call to a function that alters the controlled sequence, or after the first call to a non-`const` member function.
130130
@@ -512,7 +512,7 @@ The first element of the string has an index of zero and the following elements
512512
513513
The member [`operator[]`](#op_at) is faster than the member function `at` for providing read and write access to the elements of a string.
514514
515-
The member `operator[]` doesn't check whether the index passed as a parameter is valid but the member function `at` does and so should be used if the validity isn't certain. An invalid index, which is an index less than zero or greater than or equal to the size of the string, passed to the member function `at` throws an [`out_of_range` Class](../standard-library/out-of-range-class.md) exception. An invalid index passed to the `operator[]` results in undefined behavior, but the index equal to the length of the string is a valid index for const strings and the operator returns the null-character when passed this index.
515+
The member `operator[]` doesn't check whether the index passed as a parameter is valid but the member function `at` does and so should be used if the validity isn't certain. An invalid index, which is an index less than zero or greater than or equal to the size of the string, passed to the member function `at` throws an [`out_of_range` Class](out-of-range-class.md) exception. An invalid index passed to the `operator[]` results in undefined behavior, but the index equal to the length of the string is a valid index for const strings and the operator returns the null-character when passed this index.
516516
517517
The reference returned may be invalidated by string reallocations or modifications for the non-`const` strings.
518518
@@ -3200,7 +3200,7 @@ The maximum number of characters a string could contain.
32003200

32013201
### Remarks
32023202

3203-
An exception of type [`length_error` Class](../standard-library/length-error-class.md) is thrown when an operation produces a string with a length greater than the maximum size.
3203+
An exception of type [`length_error` Class](length-error-class.md) is thrown when an operation produces a string with a length greater than the maximum size.
32043204

32053205
### Example
32063206

@@ -3479,11 +3479,11 @@ The first element of the string has an index of zero, and the following elements
34793479

34803480
`operator[]` is faster than the member function [`at`](#at) for providing read and write access to the elements of a string.
34813481

3482-
`operator[]` doesn't check whether the index passed as a parameter is valid, but the member function `at` does and so should be used if the validity isn't certain. An invalid index (an index less than zero or greater than or equal to the size of the string) passed to the member function `at` throws an [`out_of_range` Class](../standard-library/out-of-range-class.md) exception. An invalid index passed to `operator[]` results in undefined behavior, but the index equal to the length of the string is a valid index for const strings and the operator returns the null character when passed this index.
3482+
`operator[]` doesn't check whether the index passed as a parameter is valid, but the member function `at` does and so should be used if the validity isn't certain. An invalid index (an index less than zero or greater than or equal to the size of the string) passed to the member function `at` throws an [`out_of_range` Class](out-of-range-class.md) exception. An invalid index passed to `operator[]` results in undefined behavior, but the index equal to the length of the string is a valid index for const strings and the operator returns the null character when passed this index.
34833483

34843484
The reference returned may be invalidated by string reallocations or modifications for the non-`const` strings.
34853485

3486-
When compiling with [`_ITERATOR_DEBUG_LEVEL`](../standard-library/iterator-debug-level.md) set to 1 or 2, a runtime error will occur if you attempt to access an element outside the bounds of the string. For more information, see [Checked Iterators](../standard-library/checked-iterators.md).
3486+
When compiling with [`_ITERATOR_DEBUG_LEVEL`](iterator-debug-level.md) set to 1 or 2, a runtime error will occur if you attempt to access an element outside the bounds of the string. For more information, see [Checked Iterators](checked-iterators.md).
34873487

34883488
### Example
34893489

@@ -4805,7 +4805,7 @@ For type `string`, it's equivalent to `char_traits<char>`.
48054805

48064806
### Example
48074807

4808-
See the example for [`copy`](../standard-library/char-traits-struct.md#copy) for an example of how to declare and use `traits_type`.
4808+
See the example for [`copy`](char-traits-struct.md#copy) for an example of how to declare and use `traits_type`.
48094809

48104810
## <a name="value_type"></a> `basic_string::value_type`
48114811

@@ -4847,5 +4847,5 @@ The character ch2 is: H.
48474847

48484848
## See also
48494849

4850-
[`<string>`](../standard-library/string.md)\
4851-
[Thread safety in the C++ standard library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
4850+
[`<string>`](string.md)\
4851+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

0 commit comments

Comments
 (0)