==,CppSet,CppSet-method {cppcontainers} | R Documentation |
Check equality
Description
Check, if two containers hold identical data.
Usage
## S4 method for signature 'CppSet,CppSet'
e1 == e2
## S4 method for signature 'CppUnorderedSet,CppUnorderedSet'
e1 == e2
## S4 method for signature 'CppMultiset,CppMultiset'
e1 == e2
## S4 method for signature 'CppUnorderedMultiset,CppUnorderedMultiset'
e1 == e2
## S4 method for signature 'CppMap,CppMap'
e1 == e2
## S4 method for signature 'CppUnorderedMap,CppUnorderedMap'
e1 == e2
## S4 method for signature 'CppMultimap,CppMultimap'
e1 == e2
## S4 method for signature 'CppUnorderedMultimap,CppUnorderedMultimap'
e1 == e2
## S4 method for signature 'CppStack,CppStack'
e1 == e2
## S4 method for signature 'CppQueue,CppQueue'
e1 == e2
## S4 method for signature 'CppVector,CppVector'
e1 == e2
## S4 method for signature 'CppDeque,CppDeque'
e1 == e2
## S4 method for signature 'CppForwardList,CppForwardList'
e1 == e2
## S4 method for signature 'CppList,CppList'
e1 == e2
Arguments
e1 |
A CppSet, CppUnorderedSet, CppMultiset, CppUnorderedMultiset, CppMap, CppUnorderedMap, CppMultimap, CppUnorderedMultimap, CppStack, CppQueue, CppVector, CppDeque, CppForwardList, or CppList object. |
e2 |
A CppSet, CppUnorderedSet, CppMultiset, CppUnorderedMultiset, CppMap, CppUnorderedMap, CppMultimap, CppUnorderedMultimap, CppStack, CppQueue,
CppVector, CppDeque, CppForwardList, or CppList object of the same class and data type as |
Value
Returns TRUE
, if the containers hold the same data and FALSE
otherwise.
See Also
Examples
x <- cpp_set(1:10)
y <- cpp_set(1:10)
x == y
# [1] TRUE
y <- cpp_set(1:11)
x == y
# [1] FALSE
[Package cppcontainers version 1.0.0 Index]