sorting {cppcontainers} | R Documentation |
Print the sorting order
Description
Print the sorting order of a priority queue.
Usage
sorting(x)
Arguments
x |
An CppPriorityQueue object. |
Value
Returns "ascending"
or "descending"
.
See Also
Examples
q <- cpp_priority_queue(4:6)
sorting(q)
# [1] "descending"
q <- cpp_priority_queue(4:6, "ascending")
sorting(q)
# [1] "ascending"
[Package cppcontainers version 1.0.0 Index]