first commit
This commit is contained in:
33
extern/ustl/1.5/bvt/bvt17.std
vendored
Normal file
33
extern/ustl/1.5/bvt/bvt17.std
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
bitset<30> bs1: capacity() = 32, sizeof() = 4
|
||||
000000000000000000000000000000
|
||||
111111111111111111111110111111
|
||||
000000000000000000000001000000
|
||||
111111111111111111111110111111
|
||||
011010011001011001011000100100
|
||||
count = 13
|
||||
000000000000000000000000000000
|
||||
any = false, none = true, count = 0
|
||||
111111111111111111111111111111
|
||||
any = true, none = false, count = 32
|
||||
000000000000000000000110010000
|
||||
test(7) == true, [9] = false, [8] = true
|
||||
any = true, none = false, count = 3
|
||||
~bs1 == 111111111111111111111001101111
|
||||
to_value == 0x190
|
||||
bitset<70> bs2: capacity() = 96, sizeof() = 12
|
||||
0000000000000000000000000000000000000000000000000000000000000000101101
|
||||
bs2.set(34,40,13)
|
||||
0000000000000000000000000000000011010000000000000000000000000000101101
|
||||
bs2.at(34,40) = 13
|
||||
bitset<256> bs3: capacity() = 256, sizeof() = 32
|
||||
bs3.to_value() == 0x3030
|
||||
bs4 == bs1
|
||||
bs4 = 0x50505050: 010000010100000101000001010000
|
||||
bs1 = 0x30303030: 110000001100000011000000110000
|
||||
bs4 &= bs1; bs4 = 010000000100000001000000010000
|
||||
bs4 & bs1; bs4 = 010000000100000001000000010000
|
||||
bs4 |= bs1; bs4 = 110000011100000111000001110000
|
||||
bs4 | bs1; bs4 = 110000011100000111000001110000
|
||||
bs4 ^= bs1; bs4 = 100000011000000110000001100000
|
||||
bs4 ^ bs1; bs4 = 100000011000000110000001100000
|
||||
stream[4]; bs4 = 100000011000000110000001100000
|
||||
Reference in New Issue
Block a user