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:
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')) |
Bug tracker:https://github.com/cdueben/cppcontainers/issues
Last updated 22 hours agofrom:01408b18a9. Checks:OK: 1 NOTE: 8. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 22 2024 |
R-4.5-win-x86_64 | NOTE | Nov 22 2024 |
R-4.5-linux-x86_64 | NOTE | Nov 22 2024 |
R-4.4-win-x86_64 | NOTE | Nov 22 2024 |
R-4.4-mac-x86_64 | NOTE | Nov 22 2024 |
R-4.4-mac-aarch64 | NOTE | Nov 22 2024 |
R-4.3-win-x86_64 | NOTE | Nov 22 2024 |
R-4.3-mac-x86_64 | NOTE | Nov 22 2024 |
R-4.3-mac-aarch64 | NOTE | Nov 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
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 elements | assign assign,CppDeque-method assign,CppForwardList-method assign,CppList-method assign,CppVector-method |
Access elements with bounds checking | at at,CppDeque-method at,CppMap-method at,CppUnorderedMap-method at,CppVector-method |
Access last element | back back,CppDeque-method back,CppList-method back,CppQueue-method back,CppVector-method |
Get the number of buckets | bucket_count bucket_count,CppUnorderedMap-method bucket_count,CppUnorderedMultimap-method bucket_count,CppUnorderedMultiset-method bucket_count,CppUnorderedSet-method |
Get container capacity | capacity capacity,CppVector-method |
Clear the container | clear 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 elements | contains 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 frequency | count 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 deque | cpp_deque |
Create forward list | cpp_forward_list |
Create list | cpp_list |
Create map | cpp_map |
Create multimap | cpp_multimap |
Create multiset | cpp_multiset |
Create priority queue | cpp_priority_queue |
Create queue | cpp_queue |
Create set | cpp_set |
Create stack | cpp_stack |
Create unordered map | cpp_unordered_map |
Create unordered multimap | cpp_unordered_multimap |
Create unordered multiset | cpp_unordered_multiset |
Create unordered set | cpp_unordered_set |
Create vector | cpp_vector |
Add an element | emplace 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 element | emplace_after emplace_after,CppForwardList-method |
Add an element to the back | emplace_back emplace_back,CppDeque-method emplace_back,CppList-method emplace_back,CppVector-method |
Add an element to the front | emplace_front emplace_front,CppDeque-method emplace_front,CppForwardList-method emplace_front,CppList-method |
Check emptiness | empty 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 elements | erase 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 elements | erase_after erase_after,CppForwardList-method |
Toggle boolean values | flip flip,CppVector-method |
Access first element | front front,CppDeque-method front,CppForwardList-method front,CppList-method front,CppQueue-method front,CppVector-method |
Add elements | insert 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 elements | insert_after insert_after,CppForwardList-method |
Add or overwrite elements | insert_or_assign insert_or_assign,CppMap-method insert_or_assign,CppUnorderedMap-method |
Get the mean number of elements per bucket | load_factor load_factor,CppUnorderedMap-method load_factor,CppUnorderedMultimap-method load_factor,CppUnorderedMultiset-method load_factor,CppUnorderedSet-method |
Get the maximum number of buckets | max_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 factor | max_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 size | max_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 objects | merge 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 element | pop pop,CppPriorityQueue-method pop,CppQueue-method pop,CppStack-method |
Remove an element from the back | pop_back pop_back,CppDeque-method pop_back,CppList-method pop_back,CppVector-method |
Remove an element from the front | pop_front pop_front,CppDeque-method pop_front,CppForwardList-method pop_front,CppList-method |
Print container data | print 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 elements | push push,CppPriorityQueue-method push,CppQueue-method push,CppStack-method |
Add an element to the back | push_back push_back,CppDeque-method push_back,CppList-method push_back,CppVector-method |
Add an element to the front | push_front push_front,CppDeque-method push_front,CppForwardList-method push_front,CppList-method |
Set minimum bucket count and rehash | rehash rehash,CppUnorderedMap-method rehash,CppUnorderedMultimap-method rehash,CppUnorderedMultiset-method rehash,CppUnorderedSet-method |
Remove elements | |
Reserve space | reserve reserve,CppUnorderedMap-method reserve,CppUnorderedMultimap-method reserve,CppUnorderedMultiset-method reserve,CppUnorderedSet-method reserve,CppVector-method |
Alter the container size | resize 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 order | reverse reverse,CppForwardList-method reverse,CppList-method |
Shrink container capacity to size | shrink_to_fit shrink_to_fit,CppDeque-method shrink_to_fit,CppVector-method |
Get container size | size 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 elements | sort sort,CppForwardList-method sort,CppList-method |
Print the sorting order | sorting sorting,CppPriorityQueue-method |
Move elements | splice splice,CppList-method |
Move elements | splice_after splice_after,CppForwardList-method |
Export data to R | to_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 element | top top,CppPriorityQueue-method top,CppStack-method |
Add an element | try_emplace try_emplace,CppMap-method try_emplace,CppUnorderedMap-method |
Get data type | type 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 duplicates | unique unique,CppForwardList-method unique,CppList-method |