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

Function multimap_string_int

inst/tinytest/cpp/wrap.cpp:107–113  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

105
106// [[Rcpp::export]]
107IntegerVector multimap_string_int(){
108 std::multimap< std::string, int > m;
109 m.insert( std::pair<std::string,int>("b", 100));
110 m.insert( std::pair<std::string,int>("a", 200));
111 m.insert( std::pair<std::string,int>("c", 300));
112 return wrap(m);
113}
114
115// [[Rcpp::export]]
116NumericVector multimap_string_double(){

Callers

nothing calls this directly

Calls 2

wrapFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected