Skip to content

Commit fc90dc5

Browse files
Update README.md
1 parent f79dbad commit fc90dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parameter_pack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* `template <size_t index, typename... Args> constexpr auto value_by_index(Args&&... args) noexcept` returns the *value* at position `index` from `args`.
1010

1111
* `template <typename Functor, class... Args> void apply(Functor&& f, Args&&... args)` iterates the pack `args` and calls functor `f` with each *value* in the pack.
12-
<br>Example: `apply([](auto&& item){std::cout << value << std::endl;}, 0, -1.0f, "text");`
12+
<br>Example: `apply([](auto&& value){std::cout << value << std::endl;}, 0, -1.0f, "text");`
1313

1414
* `template <typename... Args, typename Functor> void for_type(Functor&& f)` calls functor `f` for each *type* in the argument pack. The type is passed using `type_wrapper` helper template defined in `utils/template_magic.hpp`.
1515
<br>Example: `for_type<int, float, std::string> ([](auto&& t){ using Type = typename decltype(t)::type; });`

0 commit comments

Comments
 (0)