Skip to content

Commit df49a65

Browse files
Merge pull request #5162 from TylerMSFT/array
remove performance note
2 parents fbb73ec + 5cb5088 commit df49a65

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

docs/cpp/welcome-back-to-cpp-modern-cpp.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: "Welcome back to C++ - Modern C++"
33
description: "Describes the new programming idioms in Modern C++ and their rationale."
44
ms.date: 06/02/2022
55
ms.topic: "conceptual"
6-
ms.assetid: 1cb1b849-ed9c-4721-a972-fd8f3dab42e2
76
---
87
# Welcome back to C++ - Modern C++
98

@@ -64,10 +63,7 @@ apple_color["Granny Smith"] = "Green";
6463

6564
When performance optimization is needed, consider using:
6665

67-
- The [`array`](../standard-library/array-class-stl.md) type when embedding is important, for example, as a class member.
68-
6966
- Unordered associative containers such as [`unordered_map`](../standard-library/unordered-map-class.md). These have lower per-element overhead and constant-time lookup, but they can be harder to use correctly and efficiently.
70-
7167
- Sorted `vector`. For more information, see [Algorithms](../standard-library/algorithms.md).
7268

7369
Don't use C-style arrays. For older APIs that need direct access to the data, use accessor methods such as `f(vec.data(), vec.size());` instead. For more information about containers, see [C++ Standard Library Containers](../standard-library/stl-containers.md).
@@ -79,11 +75,8 @@ Before you assume that you need to write a custom algorithm for your program, fi
7975
Here are some important examples:
8076

8177
- `for_each`, the default traversal algorithm (along with range-based `for` loops).
82-
8378
- `transform`, for not-in-place modification of container elements
84-
8579
- `find_if`, the default search algorithm.
86-
8780
- `sort`, `lower_bound`, and the other default sorting and searching algorithms.
8881

8982
To write a comparator, use strict **`<`** and use *named lambdas* when you can.

0 commit comments

Comments
 (0)