Package: cppcontainers 1.0.2

Christian Düben

cppcontainers: 'C++' Standard Template Library Containers

Use 'C++' Standard Template Library containers interactively in R. Includes sets, unordered sets, multisets, unordered multisets, maps, unordered maps, multimaps, unordered multimaps, stacks, queues, priority queues, vectors, deques, forward lists, and lists.

Authors:Christian Düben [aut, cre]

cppcontainers_1.0.2.tar.gz
cppcontainers_1.0.2.zip(r-4.5)cppcontainers_1.0.2.zip(r-4.4)cppcontainers_1.0.2.zip(r-4.3)
cppcontainers_1.0.2.tgz(r-4.4-x86_64)cppcontainers_1.0.2.tgz(r-4.4-arm64)cppcontainers_1.0.2.tgz(r-4.3-x86_64)cppcontainers_1.0.2.tgz(r-4.3-arm64)
cppcontainers_1.0.2.tar.gz(r-4.5-noble)cppcontainers_1.0.2.tar.gz(r-4.4-noble)
cppcontainers_1.0.2.tgz(r-4.4-emscripten)cppcontainers_1.0.2.tgz(r-4.3-emscripten)
cppcontainers.pdf |cppcontainers.html
cppcontainers/json (API)
NEWS

# Install 'cppcontainers' in R:
install.packages('cppcontainers', repos = c('https://cdueben.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/cdueben/cppcontainers/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

4.48 score 1 scripts 145 downloads 63 exports 1 dependencies

Last updated 22 hours agofrom:01408b18a9. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 22 2024
R-4.5-win-x86_64NOTENov 22 2024
R-4.5-linux-x86_64NOTENov 22 2024
R-4.4-win-x86_64NOTENov 22 2024
R-4.4-mac-x86_64NOTENov 22 2024
R-4.4-mac-aarch64NOTENov 22 2024
R-4.3-win-x86_64NOTENov 22 2024
R-4.3-mac-x86_64NOTENov 22 2024
R-4.3-mac-aarch64NOTENov 22 2024

Exports:assignatbackbucket_countcapacityclearcontainscountcpp_dequecpp_forward_listcpp_listcpp_mapcpp_multimapcpp_multisetcpp_priority_queuecpp_queuecpp_setcpp_stackcpp_unordered_mapcpp_unordered_multimapcpp_unordered_multisetcpp_unordered_setcpp_vectoremplaceemplace_afteremplace_backemplace_frontemptyeraseerase_afterflipfrontinsertinsert_afterinsert_or_assignload_factormax_bucket_countmax_load_factormax_sizemergepoppop_backpop_frontprintpushpush_backpush_frontrehashremove.reserveresizereverseshrink_to_fitsizesortsortingsplicesplice_afterto_rtoptry_emplacetypeunique

Dependencies:Rcpp

Frequently Asked Questions

Rendered fromfaq.Rmdusingknitr::rmarkdownon Nov 22 2024.

Last update: 2024-11-11
Started: 2024-11-11

Introduction to cppcontainers

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Nov 22 2024.

Last update: 2024-11-22
Started: 2024-11-11

Readme and manuals

Help Manual

Help pageTopics
Access or insert elements without bounds checking[,CppDeque-method [,CppMap-method [,CppUnorderedMap-method [,CppVector-method
Check equality==,CppDeque,CppDeque-method ==,CppForwardList,CppForwardList-method ==,CppList,CppList-method ==,CppMap,CppMap-method ==,CppMultimap,CppMultimap-method ==,CppMultiset,CppMultiset-method ==,CppQueue,CppQueue-method ==,CppSet,CppSet-method ==,CppStack,CppStack-method ==,CppUnorderedMap,CppUnorderedMap-method ==,CppUnorderedMultimap,CppUnorderedMultimap-method ==,CppUnorderedMultiset,CppUnorderedMultiset-method ==,CppUnorderedSet,CppUnorderedSet-method ==,CppVector,CppVector-method
Replace all elementsassign assign,CppDeque-method assign,CppForwardList-method assign,CppList-method assign,CppVector-method
Access elements with bounds checkingat at,CppDeque-method at,CppMap-method at,CppUnorderedMap-method at,CppVector-method
Access last elementback back,CppDeque-method back,CppList-method back,CppQueue-method back,CppVector-method
Get the number of bucketsbucket_count bucket_count,CppUnorderedMap-method bucket_count,CppUnorderedMultimap-method bucket_count,CppUnorderedMultiset-method bucket_count,CppUnorderedSet-method
Get container capacitycapacity capacity,CppVector-method
Clear the containerclear clear,CppDeque-method clear,CppForwardList-method clear,CppList-method clear,CppMap-method clear,CppMultimap-method clear,CppMultiset-method clear,CppSet-method clear,CppUnorderedMap-method clear,CppUnorderedMultimap-method clear,CppUnorderedMultiset-method clear,CppUnorderedSet-method clear,CppVector-method
Check for elementscontains contains,CppMap-method contains,CppMultimap-method contains,CppMultiset-method contains,CppSet-method contains,CppUnorderedMap-method contains,CppUnorderedMultimap-method contains,CppUnorderedMultiset-method contains,CppUnorderedSet-method
Count element frequencycount count,CppMap-method count,CppMultimap-method count,CppMultiset-method count,CppSet-method count,CppUnorderedMap-method count,CppUnorderedMultimap-method count,CppUnorderedMultiset-method count,CppUnorderedSet-method
Create dequecpp_deque
Create forward listcpp_forward_list
Create listcpp_list
Create mapcpp_map
Create multimapcpp_multimap
Create multisetcpp_multiset
Create priority queuecpp_priority_queue
Create queuecpp_queue
Create setcpp_set
Create stackcpp_stack
Create unordered mapcpp_unordered_map
Create unordered multimapcpp_unordered_multimap
Create unordered multisetcpp_unordered_multiset
Create unordered setcpp_unordered_set
Create vectorcpp_vector
Add an elementemplace emplace,CppDeque-method emplace,CppList-method emplace,CppMap-method emplace,CppMultimap-method emplace,CppMultiset-method emplace,CppPriorityQueue-method emplace,CppQueue-method emplace,CppSet-method emplace,CppStack-method emplace,CppUnorderedMap-method emplace,CppUnorderedMultimap-method emplace,CppUnorderedMultiset-method emplace,CppUnorderedSet-method emplace,CppVector-method
Add an elementemplace_after emplace_after,CppForwardList-method
Add an element to the backemplace_back emplace_back,CppDeque-method emplace_back,CppList-method emplace_back,CppVector-method
Add an element to the frontemplace_front emplace_front,CppDeque-method emplace_front,CppForwardList-method emplace_front,CppList-method
Check emptinessempty empty,CppDeque-method empty,CppForwardList-method empty,CppList-method empty,CppMap-method empty,CppMultimap-method empty,CppMultiset-method empty,CppPriorityQueue-method empty,CppQueue-method empty,CppSet-method empty,CppStack-method empty,CppUnorderedMap-method empty,CppUnorderedMultimap-method empty,CppUnorderedMultiset-method empty,CppUnorderedSet-method empty,CppVector-method
Erase elementserase erase,CppDeque-method erase,CppList-method erase,CppMap-method erase,CppMultimap-method erase,CppMultiset-method erase,CppSet-method erase,CppUnorderedMap-method erase,CppUnorderedMultimap-method erase,CppUnorderedMultiset-method erase,CppUnorderedSet-method erase,CppVector-method
Erase elementserase_after erase_after,CppForwardList-method
Toggle boolean valuesflip flip,CppVector-method
Access first elementfront front,CppDeque-method front,CppForwardList-method front,CppList-method front,CppQueue-method front,CppVector-method
Add elementsinsert insert,CppDeque-method insert,CppList-method insert,CppMap-method insert,CppMultimap-method insert,CppMultiset-method insert,CppSet-method insert,CppUnorderedMap-method insert,CppUnorderedMultimap-method insert,CppUnorderedMultiset-method insert,CppUnorderedSet-method insert,CppVector-method
Add elementsinsert_after insert_after,CppForwardList-method
Add or overwrite elementsinsert_or_assign insert_or_assign,CppMap-method insert_or_assign,CppUnorderedMap-method
Get the mean number of elements per bucketload_factor load_factor,CppUnorderedMap-method load_factor,CppUnorderedMultimap-method load_factor,CppUnorderedMultiset-method load_factor,CppUnorderedSet-method
Get the maximum number of bucketsmax_bucket_count max_bucket_count,CppUnorderedMap-method max_bucket_count,CppUnorderedMultimap-method max_bucket_count,CppUnorderedMultiset-method max_bucket_count,CppUnorderedSet-method
Get or set the maximum load factormax_load_factor max_load_factor,CppUnorderedMap-method max_load_factor,CppUnorderedMultimap-method max_load_factor,CppUnorderedMultiset-method max_load_factor,CppUnorderedSet-method
Get maximum container sizemax_size max_size,CppDeque-method max_size,CppForwardList-method max_size,CppList-method max_size,CppMap-method max_size,CppMultimap-method max_size,CppMultiset-method max_size,CppSet-method max_size,CppUnorderedMap-method max_size,CppUnorderedMultimap-method max_size,CppUnorderedMultiset-method max_size,CppUnorderedSet-method max_size,CppVector-method
Merge two objectsmerge merge,CppForwardList,CppForwardList-method merge,CppList,CppList-method merge,CppMap,CppMap-method merge,CppMultimap,CppMultimap-method merge,CppMultiset,CppMultiset-method merge,CppSet,CppSet-method merge,CppUnorderedMap,CppUnorderedMap-method merge,CppUnorderedMultimap,CppUnorderedMultimap-method merge,CppUnorderedMultiset,CppUnorderedMultiset-method merge,CppUnorderedSet,CppUnorderedSet-method
Remove top elementpop pop,CppPriorityQueue-method pop,CppQueue-method pop,CppStack-method
Remove an element from the backpop_back pop_back,CppDeque-method pop_back,CppList-method pop_back,CppVector-method
Remove an element from the frontpop_front pop_front,CppDeque-method pop_front,CppForwardList-method pop_front,CppList-method
Print container dataprint print,CppDeque-method print,CppForwardList-method print,CppList-method print,CppMap-method print,CppMultimap-method print,CppMultiset-method print,CppPriorityQueue-method print,CppQueue-method print,CppSet-method print,CppStack-method print,CppUnorderedMap-method print,CppUnorderedMultimap-method print,CppUnorderedMultiset-method print,CppUnorderedSet-method print,CppVector-method
Add elementspush push,CppPriorityQueue-method push,CppQueue-method push,CppStack-method
Add an element to the backpush_back push_back,CppDeque-method push_back,CppList-method push_back,CppVector-method
Add an element to the frontpush_front push_front,CppDeque-method push_front,CppForwardList-method push_front,CppList-method
Set minimum bucket count and rehashrehash rehash,CppUnorderedMap-method rehash,CppUnorderedMultimap-method rehash,CppUnorderedMultiset-method rehash,CppUnorderedSet-method
Remove elements
Reserve spacereserve reserve,CppUnorderedMap-method reserve,CppUnorderedMultimap-method reserve,CppUnorderedMultiset-method reserve,CppUnorderedSet-method reserve,CppVector-method
Alter the container sizeresize resize,CppDeque-method resize,CppForwardList-method resize,CppList-method resize,CppMap-method resize,CppMultimap-method resize,CppMultiset-method resize,CppPriorityQueue-method resize,CppQueue-method resize,CppSet-method resize,CppStack-method resize,CppUnorderedMap-method resize,CppUnorderedMultimap-method resize,CppUnorderedMultiset-method resize,CppUnorderedSet-method resize,CppVector-method
Reverse element orderreverse reverse,CppForwardList-method reverse,CppList-method
Shrink container capacity to sizeshrink_to_fit shrink_to_fit,CppDeque-method shrink_to_fit,CppVector-method
Get container sizesize size,CppDeque-method size,CppList-method size,CppMap-method size,CppMultimap-method size,CppMultiset-method size,CppPriorityQueue-method size,CppQueue-method size,CppSet-method size,CppStack-method size,CppUnorderedMap-method size,CppUnorderedMultimap-method size,CppUnorderedMultiset-method size,CppUnorderedSet-method size,CppVector-method
Sort elementssort sort,CppForwardList-method sort,CppList-method
Print the sorting ordersorting sorting,CppPriorityQueue-method
Move elementssplice splice,CppList-method
Move elementssplice_after splice_after,CppForwardList-method
Export data to Rto_r to_r,CppDeque-method to_r,CppForwardList-method to_r,CppList-method to_r,CppMap-method to_r,CppMultimap-method to_r,CppMultiset-method to_r,CppPriorityQueue-method to_r,CppQueue-method to_r,CppSet-method to_r,CppStack-method to_r,CppUnorderedMap-method to_r,CppUnorderedMultimap-method to_r,CppUnorderedMultiset-method to_r,CppUnorderedSet-method to_r,CppVector-method
Access top elementtop top,CppPriorityQueue-method top,CppStack-method
Add an elementtry_emplace try_emplace,CppMap-method try_emplace,CppUnorderedMap-method
Get data typetype type,CppDeque-method type,CppForwardList-method type,CppList-method type,CppMap-method type,CppMultimap-method type,CppMultiset-method type,CppPriorityQueue-method type,CppQueue-method type,CppSet-method type,CppStack-method type,CppUnorderedMap-method type,CppUnorderedMultimap-method type,CppUnorderedMultiset-method type,CppUnorderedSet-method type,CppVector-method
Delete consecutive duplicatesunique unique,CppForwardList-method unique,CppList-method