We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ranget.map
1 parent 0b73746 commit bbc2016Copy full SHA for bbc2016
src/util/range.h
@@ -327,7 +327,11 @@ struct ranget final
327
}
328
329
/// The type of elements contained in the resulting range is deduced from the
330
- /// return type of \p `f`.
+ /// return type of `f`.
331
+ /// Please note that the parameter to `f` must be a const reference. This is
332
+ /// a limitation of the current implementation. This means that you can't move
333
+ /// a value through `f`. `f` may take a move-only typed parameter by const
334
+ /// reference. 'f' may also construct and return a move-only typed value.
335
template <typename functiont>
336
auto map(functiont &&f) -> ranget<map_iteratort<
337
iteratort,
0 commit comments