Last active
December 18, 2015 21:28
-
-
Save Planeshifter/5847130 to your computer and use it in GitHub Desktop.
Print the length of a std::vector of strings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rcpp.h> | |
#include <string> | |
#include <vector> | |
// [[Rcpp::export]] | |
void print_vector(vector<std::string> input) | |
{ | |
for( std::vector<string>::iterator i = input.begin(); i != input.end(); ++i) | |
Rcout << *i << ' '; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment