All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
make.hpp
Go to the documentation of this file.
1 
8 #ifndef PAAL_MAKE_HPP
9 #define PAAL_MAKE_HPP
10 
12 
13 #include <unordered_set>
14 
15 namespace paal {
16 
18 template <typename Range, typename Element = range_to_elem_t<Range>>
19 auto make_unordered_set(Range const & r) {
20  return std::unordered_set<Element>(std::begin(r), std::end(r));
21 }
22 
23 }
24 
25 #endif /* PAAL_MAKE_HPP */
auto make_unordered_set(Range const &r)
make for unordered_set
Definition: make.hpp:19