Using std::begin() and std::end() forces the user to have const begin()
and end() member functions being defined for the passed container. This
is because std::declval<T>() returns rvalue which forces the compiler
to select std::{begin, end}()(const Container &c) overloads and an test
for a presence of const {begin, end}() methods.
Change-Id: I9d96d9f73891ece53224f1741a1334500f7b35ad
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
||
|---|---|---|
| .. | ||
| qtconcurrentfilter | ||
| qtconcurrentiteratekernel | ||
| qtconcurrentmap | ||
| qtconcurrentmedian | ||
| qtconcurrentrun | ||
| qtconcurrenttask | ||
| qtconcurrentthreadengine | ||
| CMakeLists.txt | ||
| concurrent.pro | ||