Skip to content

Commit 2a714d9

Browse files
committed
Structured bindings added
1 parent 9d3bf77 commit 2a714d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ It should be >= 7.0
7878
Change functions from `main.cpp` into lambdas (`sortByArea`, `perimeterBiggerThan20`, `areaLessThan10`)
7979
Change lambda `areaLessThan10` into lambda `areaLessThanX`, which takes `x = 10` on a capture list. What is the problem?
8080
Use `std::function` to solve the problem.
81-
17. variadic templates:
81+
17. structured bindings:
82+
Create an `std::map<shared_ptr<Shape>, double>` that will hold a shape and it's perimeter.
83+
Use structured bindings to iterate over this collection and display shape info (call `print()` member function) and a perimeter.
84+
18. variadic templates:
8285
Write a factory method which should work like `std::make_shared`.
8386
It should have below signature:
8487

0 commit comments

Comments
 (0)