diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-08 21:35:56 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-08 21:35:56 +0000 |
| commit | 9e15181dc9b56435c5e1d3ab87dd03404d6c31c9 (patch) | |
| tree | 2fcf0f09cea4755e36c7295b517676a234c10c51 /src/hook_manager.cc | |
| parent | 21ae66215163976ea4c826dcdf55e04ddce54748 (diff) | |
Rework container helpers, use pipe syntax and cleanup implementation
use 'container | filter(func) | reverse() | transform(func)' instead
of 'transform(reverse(filter(container), func), func)' to express
container transformations.
Diffstat (limited to 'src/hook_manager.cc')
| -rw-r--r-- | src/hook_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hook_manager.cc b/src/hook_manager.cc index 81a00730..389c8504 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -31,7 +31,7 @@ CandidateList HookManager::complete_hook_group(StringView prefix, ByteCount pos_ CandidateList res; for (auto& list : m_hook) { - auto container = transformed(list.value, decltype(list.value)::get_id); + auto container = list.value | transform(decltype(list.value)::get_id); for (auto& c : complete(prefix, pos_in_token, container)) { if (!contains(res, c)) |
