Commit 961e6c0e authored by Jan Koniarik's avatar Jan Koniarik
Browse files

added requries to types select properly gettable or range container where both are acceptable

parent 08a76135
Pipeline #91250 passed with stage
in 38 seconds
......@@ -19,6 +19,7 @@ template <typename Container, typename UnaryFunction>
struct mapped;
template <gettable_container Container, typename UnaryFunction>
requires (!range_container<Container>)
struct mapped<Container, UnaryFunction> {
using type = decltype(std::declval<UnaryFunction>()(std::get<0>(std::declval<Container>())));
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment