MarcDirven / cpp-lazy

C++11/14/17/20 library for lazy evaluation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit function template parameters toMap and toUnorderedMap

MarcDirven opened this issue · comments

commented

template<class KeySelectorFunc,

Create a wrapper function for toMap and toUnorderedMap so that when one has to specify for e.g. the Hasher template parameter, one does not also has to specify the Key template parameter as well, since that can be deduced automatically by using decltype(std::declval<Func>()).