关于transform函数的一个问题

学术版

来个传道授业的- -
by lookluke @ 2019-12-13 18:28:53


@[lookluke](/user/298680) 有冲突,cctype中有tolower函数,将单个字符转小写
by panyf @ 2019-12-13 18:35:34


~~transform是什么函数~~
by Curators @ 2019-12-13 19:04:32


``` template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter __first, _IIter __last, _OIter __result, _UnaryOperation __unary_op) +1 overload @[brief](/user/285695) Perform an operation on a sequence. @ingroup mutating_algorithms @param __first An input iterator. @param __last An input iterator. @param __result An output iterator. @param __unary_op A unary operator. @return An output iterator equal to @p __result+(__last-__first). Applies the operator to each element in the input range and assigns the results to successive elements of the output sequence. Evaluates @p *(__result+N)=unary_op(*(__first+N)) for each @c N in the range @p [0,__last-__first). @p unary_op must not alter its argument. ```
by Cloudflare @ 2019-12-13 19:29:52


|