1 #include "ace/OS_main.h"
2 #include "ace/Containers.h"
3 #include "ace/Log_Msg.h"
6 ACE_TMAIN (int, ACE_TCHAR
*[])
8 ACE_Unbounded_Set
<int> s1
;
10 ACE_ASSERT (s1
.size () == 0);
13 ACE_ASSERT (s1
.size () == 2);
15 ACE_Unbounded_Set
<int> s2 (s1
);
16 ACE_ASSERT (s2
.size () == 2);
18 ACE_Unbounded_Set
<int> s3
;
19 ACE_ASSERT (s3
.size () == 0);
22 ACE_ASSERT (s3
.size () == s2
.size ());
24 ACE_Unbounded_Set
<int> s4 (s3
);
25 ACE_ASSERT (s4
.size () == 2);
29 ACE_DEBUG ((LM_DEBUG
, "dumping s1\n"));
30 for (ACE_Unbounded_Set_Iterator
<int> iter1 (s1
);
33 ACE_DEBUG ((LM_DEBUG
, "item = %d\n", *ip
));
35 ACE_DEBUG ((LM_DEBUG
, "dumping s2\n"));
36 for (ACE_Unbounded_Set_Iterator
<int> iter2 (s2
);
39 ACE_DEBUG ((LM_DEBUG
, "item = %d\n", *ip
));
41 ACE_DEBUG ((LM_DEBUG
, "dumping s3\n"));
42 for (ACE_Unbounded_Set_Iterator
<int> iter3 (s3
);
45 ACE_DEBUG ((LM_DEBUG
, "item = %d\n", *ip
));
47 ACE_DEBUG ((LM_DEBUG
, "dumping s4\n"));
48 for (ACE_Unbounded_Set_Iterator
<int> iter4 (s4
);
51 ACE_DEBUG ((LM_DEBUG
, "item = %d\n", *ip
));