repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial
[prop.git]
/
lib-src
/
contain
/
test.cc
blob
1e68930eb7a94342415ee5a46809f16699d499f8
1
#include <stdlib.h>
2
#include <iostream.h>
3
#include <AD/memory/mempool.h>
4
#include <AD/contain/fbitset.h>
5
6
int
main
()
7
{
MemPool mem
;
8
int
N
=
128
;
9
FastBitSet
set
(
mem
,
N
);
10
for
(
int
i
=
0
;
i
<
N
;
i
++)
11
{
int
j
=
drand48
() *
N
;
12
cerr
<<
"+"
<<
j
<<
' '
;
13
set
.
add
(
j
);
14
cerr
<<
set
<<
'
\n
'
;
15
}
16
return
0
;
17
}