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

Function multimap_string_generic

inst/tinytest/cpp/wrap.cpp:152–164  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

150
151// [[Rcpp::export]]
152List multimap_string_generic(){
153 typedef std::pair<std::string,std::vector<int> > _pair ;
154 std::multimap< std::string,std::vector<int> > m ;
155 std::vector<int> b ; b.push_back(1) ; b.push_back(2) ;
156 m.insert( _pair("b", b) );
157
158 std::vector<int> a ; a.push_back(1) ; a.push_back(2) ; a.push_back(2) ;
159 m.insert( _pair("a", a) );
160
161 std::vector<int> c ; c.push_back(1) ; c.push_back(2) ; c.push_back(2) ; c.push_back(2) ;
162 m.insert( _pair("c", c) );
163 return wrap(m);
164}
165
166// [[Rcpp::export]]
167SEXP nonnull_const_char(){

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.50
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected