FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp11/cpp11test/src/insert.cpp at main · josh28x/cpp11 · GitHub
josh28x
cpp11
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp11
/
cpp11test
/
src
/
insert.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (10 loc) · 244 Bytes
Breadcrumbs
cpp11
/
cpp11test
/
src
/
insert.cpp
Copy path
File metadata and controls
12 lines (10 loc) · 244 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
#
include
"
cpp11/doubles.hpp
"
[[cpp11::register]]
SEXP
cpp11_insert_
(
SEXP
num_sxp) {
R_xlen_t num =
INTEGER
(num_sxp)[
0
];
R_xlen_t i =
0
;
cpp11::writable::doubles out;
while
(i < num) {
out.
insert
(
0
, i++);
}
return
SEXP
(out);
}
Back
|
FazBrowse Home
|
New Git URL