MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / transform

Method transform

inst/include/Rcpp/vector/string_proxy.h:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173 template <typename UnaryOperator>
174 void transform( UnaryOperator op ){
175 buffer = begin() ;
176 std::transform( buffer.begin(), buffer.end(), buffer.begin(), op ) ;
177 set( buffer ) ;
178 }
179
180 template <typename OutputIterator, typename UnaryOperator>
181 void apply( OutputIterator target, UnaryOperator op){

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected