fix syntax in illustrative example

This commit is contained in:
Lin Yuan
2026-02-14 20:36:36 +00:00
parent b169a2e1dd
commit eaf710847f

View File

@@ -689,7 +689,7 @@ constexpr auto lookup_table = [] {
// Per.19: Prefer contiguous data for cache-friendliness // Per.19: Prefer contiguous data for cache-friendliness
std::vector<Point> points; // GOOD: contiguous std::vector<Point> points; // GOOD: contiguous
std::vector<std::unique_ptr<Point>>; // BAD: pointer chasing std::vector<std::unique_ptr<Point>> indirect_points; // BAD: pointer chasing
``` ```
### Anti-Patterns ### Anti-Patterns