bitvect: add a is_subset_of method.
* src/misc/bitvect.hh: New method. * src/tgbatest/bitvect.cc, src/tgbatest/bitvect.test: Test it.
This commit is contained in:
parent
90a43db5a4
commit
9a097bb02e
3 changed files with 21 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ w: 000000000010110000000000000000100000000001
|
|||
|
||||
x: 000000000000000000000000000000000000000000000000000000000000100000000010000
|
||||
x: 000000000010110000000000000000100000000001000000000000000000100000000010000
|
||||
subset? 1 0
|
||||
w: 000000000010110000000000000000100000000001100010001000100010001000100010
|
||||
x: 000000000010110000000000000000100000000001000000000000000000000000000010000
|
||||
x: 111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue