Skip to content

Commit a222c84

Browse files
committed
Fix broken pattern links
1 parent 290f0ab commit a222c84

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

common-tasks/algorithms/swap-containers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main()
3333
//
3434
// On [14], we use `std::vector`'s `swap` member function to swap the
3535
// contents all in one shot. Alternatively, [16-17] perform the same
36-
// operation with the [generic swap pattern](/common-tasks/swap-values.html).
36+
// operation with the [generic swap pattern](/patterns/swap-values.html).
3737
// This approach is much faster than `std::swap_ranges`, as it simply
3838
// swaps over the internal storage in constant time. It also does not
3939
// require the containers to have the same size. However, after the

common-tasks/classes/rule-of-five.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ class foo
9696
// **Note**: The copy and move assignment operators in the example code
9797
// provide only basic exception safety. They may alternatively be
9898
// implemented with [the copy-and-swap
99-
// idiom](/common-tasks/copy-and-swap.html), which provides strong
99+
// idiom](/patterns/copy-and-swap.html), which provides strong
100100
// exception safety at an optimisation cost.
101101
//
102102
// **Note**: We can typically avoid manual memory management and
103103
// having to write the copy constructor, assignment operator, and
104104
// destructor entirely by using the
105-
// [rule of zero](/common-tasks/rule-of-zero.html)
105+
// [rule of zero](/patterns/rule-of-zero.html)
106106

107107
int main()
108108
{

common-tasks/input-streams/validate-multiple-reads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ int main()
4040
// successful.
4141
//
4242
// If you are reading values on multiple lines, consider [reading
43-
// from the stream line-by-line](/common-tasks/read-line-by-line.html)
43+
// from the stream line-by-line](/patterns/read-line-by-line.html)
4444
// and then parsing each line.

common-tasks/memory-management/shared-ownership.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ int main()
2828
// destroyed.
2929
//
3030
// In other cases, you may instead wish to [transfer unique ownership
31-
// of an object](/common-tasks/unique-ownership.html).
31+
// of an object](/patterns/unique-ownership.html).

common-tasks/memory-management/unique-ownership.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main()
3232
// function.
3333
//
3434
// In other cases, you may instead wish to
35-
// [share ownership of an object](/common-tasks/shared-ownership.html).
35+
// [share ownership of an object](/patterns/shared-ownership.html).
3636
//
3737
// **Note**: `std::make_unique` was introduced in C++14. For C++11,
3838
// you can [roll your own implementation](http://stackoverflow.com/a/17902439/150634).

common-tasks/memory-management/use-raii-types.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ int main()
2929
//
3030
// Likewise, it is good practice to ensure your own classes also
3131
// implement the RAII idiom with the
32-
// [rule of five](/common-tasks/rule-of-five.html)
33-
// or [rule of zero](/common-tasks/rule-of-zero.html).
32+
// [rule of five](/patterns/rule-of-five.html)
33+
// or [rule of zero](/patterns/rule-of-zero.html).

common-tasks/random/choose-random-element.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int main()
2020
// On [9], we create a [`std::vector`](cpp/container/vector) from
2121
// which we want to select a random element.
2222
//
23-
// We then effectively [roll a die](/common-tasks/roll-a-die.html)
23+
// We then effectively [roll a die](/patterns/roll-a-die.html)
2424
// where the numbers on the die are the indices of elements in the
2525
// container. That is, we seed the
2626
// [`std::mt19937`](cpp/numeric/random/mersenne_twister_engine) on

common-tasks/ranges/range-based-algorithms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void algorithm(ForwardRange& range)
5656
//
5757
// If the iterators are not necessary to implement the algorithm, we
5858
// may instead be able to use a simple
59-
// [range-based `for` loop](/common-tasks/range-iteration.html).
59+
// [range-based `for` loop](/patterns/range-iteration.html).
6060

6161
#include <forward_list>
6262

common-tasks/time/fixed-time-step.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ int main()
4444
// This technique is most commonly used in a loop to ensure that the
4545
// loop iterates with a fixed time step. Alternatively, if you want to
4646
// sleep for a fixed amount of time, see the [sleep
47-
// sample](/common-tasks/sleep.html).
47+
// sample](/patterns/sleep.html).
4848

4949
void some_complex_work() { }

0 commit comments

Comments
 (0)