Skip to content

Commit 9577019

Browse files
committed
Make template exercise instructions more specific.
1 parent e34352e commit 9577019

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/templates/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ Beginners
88

99
Intermediary
1010
* Extend `OrderedVector` to allow to customize the ordering via an additional template parameter.
11-
By default, `std::less` should be used.
12-
* Test ordering by the reversed strings (from the last letter, don't change the strings!)
11+
This template parameter should be a comparison object that defaults to `std::less`.
12+
Hint:
13+
You have to customize the loop in OrderedVector::add where the insertion point is defined.
14+
* Try ordering by reversed strings (from the last letter, don't change the strings!)
1315
* Test order based on [Manhattan distance](https://en.wikipedia.org/wiki/Taxicab_geometry) with complex type
1416

1517
Bonus

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy