The C++
code presented in the StringVectorExample.cpp
file:
#include <Rcpp.h>
using namespace Rcpp ;// [[Rcpp::export]]
List StringVectorExample(const StringVector & orig) {
StringVector vec(orig.size());
std::transform(orig.begin(), orig.end(), vec.begin(),
make_string_transformer(tolower));
return List::create(Named("result") = vec,
Named("original") = orig);
}