Home
last modified time | relevance | path

Searched refs:instances (Results 1 – 25 of 1148) sorted by relevance

12345678910>>...46

/third_party/boost/libs/variant2/test/
Dvariant_destroy.cpp20 static int instances; member
24 X1(): v(0) { ++instances; } in X1()
25 explicit X1(int v): v(v) { ++instances; } in X1()
26 X1(X1 const& r): v(r.v) { ++instances; } in X1()
27 X1(X1&& r): v(r.v) { ++instances; } in X1()
29 ~X1() noexcept { --instances; } in ~X1()
35 int X1::instances = 0; member in X1
39 static int instances; member
43 X2(): v(0) { ++instances; } in X2()
44 explicit X2(int v): v(v) { ++instances; } in X2()
[all …]
Dvariant_convert_construct_throw.cpp21 static int instances; member
25 ++instances; in X()
35 --instances; in ~X()
39 int X::instances = 0; member in X
43 X::instances = 0; in test_copy()
48 BOOST_TEST_EQ( X::instances, 1 ); in test_copy()
53 BOOST_TEST_EQ( X::instances, 2 ); in test_copy()
59 BOOST_TEST_EQ( X::instances, 1 ); in test_copy()
62 BOOST_TEST_EQ( X::instances, 0 ); in test_copy()
67 X::instances = 0; in test_move()
[all …]
/third_party/boost/libs/smart_ptr/test/
Dsp_recursive_assign_rv_test.cpp21 static int instances; member in X
25 ++instances; in X()
30 --instances; in ~X()
38 int X::instances = 0; member in X
44 static int instances; member in Y
48 ++instances; in Y()
53 --instances; in ~Y()
61 int Y::instances = 0; member in Y
69 static int instances; member in Z
73 ++instances; in Z()
[all …]
Dsp_recursive_assign2_test.cpp21 static int instances; member in X
25 ++instances; in X()
30 --instances; in ~X()
38 int X::instances = 0; member in X
44 static int instances; member in Y
48 ++instances; in Y()
53 --instances; in ~Y()
61 int Y::instances = 0; member in Y
69 static int instances; member in Z
73 ++instances; in Z()
[all …]
Dsp_recursive_assign_test.cpp21 static int instances; member in X
25 ++instances; in X()
30 --instances; in ~X()
38 int X::instances = 0; member in X
44 static int instances; member in Y
48 ++instances; in Y()
53 --instances; in ~Y()
61 int Y::instances = 0; member in Y
69 static int instances; member in Z
73 ++instances; in Z()
[all …]
Dsp_recursive_assign2_rv_test.cpp21 static int instances; member in X
25 ++instances; in X()
30 --instances; in ~X()
38 int X::instances = 0; member in X
44 static int instances; member in Y
48 ++instances; in Y()
53 --instances; in ~Y()
61 int Y::instances = 0; member in Y
69 static int instances; member in Z
73 ++instances; in Z()
[all …]
Dsp_unique_ptr_test.cpp22 static int instances; member
26 ++instances; in X()
31 --instances; in ~X()
40 int X::instances = 0; member in X
44 static int instances; member
50 ++instances; in Y()
56 --instances; in ~Y()
65 int Y::instances = 0; member in Y
85 BOOST_TEST( T::instances == 0 ); in test_null_unique_ptr()
97 BOOST_TEST( T::instances == 1 ); in test_null_unique_ptr()
[all …]
Dshared_ptr_rv_test.cpp16 static long instances; member
20 ++instances; in X()
25 --instances; in ~X()
39 long X::instances = 0; member in X
43 BOOST_TEST( X::instances == 0 ); in main()
47 BOOST_TEST( X::instances == 1 ); in main()
50 BOOST_TEST( X::instances == 1 ); in main()
53 BOOST_TEST( X::instances == 0 ); in main()
56 BOOST_TEST( X::instances == 1 ); in main()
59 BOOST_TEST( X::instances == 0 ); in main()
[all …]
Dauto_ptr_rv_test.cpp27 static long instances; member
31 ++instances; in X()
36 --instances; in ~X()
50 long X::instances = 0; member in X
54 BOOST_TEST( X::instances == 0 ); in main()
58 BOOST_TEST( X::instances == 1 ); in main()
61 BOOST_TEST( X::instances == 1 ); in main()
64 BOOST_TEST( X::instances == 0 ); in main()
67 BOOST_TEST( X::instances == 1 ); in main()
70 BOOST_TEST( X::instances == 0 ); in main()
[all …]
Dsp_bml_unique_ptr_test.cpp21 static int instances; member
25 ++instances; in X()
30 --instances; in ~X()
39 int X::instances = 0; member in X
43 static int instances; member
49 ++instances; in Y()
55 --instances; in ~Y()
64 int Y::instances = 0; member in Y
84 BOOST_TEST( T::instances == 0 ); in test_null_unique_ptr()
96 BOOST_TEST( T::instances == 1 ); in test_null_unique_ptr()
[all …]
Dallocate_local_shared_esft_test.cpp34 static int instances; member in X
38 ++instances; in X()
43 --instances; in ~X()
47 int X::instances = 0; member in X
51 BOOST_TEST_EQ( X::instances, 0 ); in main()
55 BOOST_TEST_EQ( X::instances, 1 ); in main()
65 BOOST_TEST_EQ( X::instances, 1 ); in main()
73 BOOST_TEST_EQ( X::instances, 0 ); in main()
77 BOOST_TEST_EQ( X::instances, 1 ); in main()
87 BOOST_TEST_EQ( X::instances, 1 ); in main()
[all …]
Dallocate_shared_esft_test.cpp24 static int instances; member in X
28 ++instances; in X()
33 --instances; in ~X()
37 int X::instances = 0; member in X
41 BOOST_TEST( X::instances == 0 ); in main()
45 BOOST_TEST( X::instances == 1 ); in main()
55 BOOST_TEST( X::instances == 1 ); in main()
63 BOOST_TEST( X::instances == 0 ); in main()
67 BOOST_TEST( X::instances == 1 ); in main()
77 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dmake_shared_esft_test.cpp23 static int instances; member in X
27 ++instances; in X()
32 --instances; in ~X()
36 int X::instances = 0; member in X
40 BOOST_TEST( X::instances == 0 ); in main()
45 BOOST_TEST( X::instances == 1 ); in main()
55 BOOST_TEST( X::instances == 1 ); in main()
63 BOOST_TEST( X::instances == 0 ); in main()
68 BOOST_TEST( X::instances == 1 ); in main()
78 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dmake_local_shared_esft_test.cpp33 static int instances; member in X
37 ++instances; in X()
42 --instances; in ~X()
46 int X::instances = 0; member in X
50 BOOST_TEST( X::instances == 0 ); in main()
55 BOOST_TEST( X::instances == 1 ); in main()
65 BOOST_TEST( X::instances == 1 ); in main()
73 BOOST_TEST( X::instances == 0 ); in main()
78 BOOST_TEST( X::instances == 1 ); in main()
88 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dmake_unique_args_test.cpp15 static unsigned instances; member in type
27 ++instances; in type()
31 --instances; in ~type()
45 unsigned type::instances = 0; member in type
49 BOOST_TEST(type::instances == 0); in main()
53 BOOST_TEST(type::instances == 1); in main()
56 BOOST_TEST(type::instances == 0); in main()
63 BOOST_TEST(type::instances == 1); in main()
66 BOOST_TEST(type::instances == 0); in main()
72 BOOST_TEST(type::instances == 1); in main()
[all …]
Dshared_ptr_move_test.cpp19 static long instances; member
23 ++instances; in X()
28 --instances; in ~X()
37 long X::instances = 0; member in X
41 BOOST_TEST( X::instances == 0 ); in main()
45 BOOST_TEST( X::instances == 1 ); in main()
48 BOOST_TEST( X::instances == 1 ); in main()
52 BOOST_TEST( X::instances == 1 ); in main()
56 BOOST_TEST( X::instances == 0 ); in main()
61 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dintrusive_ptr_move_test.cpp53 ++instances; in base()
58 --instances; in ~base()
63 static long instances; member in N::base
97 long base::instances = 0; member in N::base
132 BOOST_TEST( N::base::instances == 0 ); in main()
136 BOOST_TEST( N::base::instances == 1 ); in main()
139 BOOST_TEST( N::base::instances == 1 ); in main()
143 BOOST_TEST( N::base::instances == 0 ); in main()
148 BOOST_TEST( N::base::instances == 1 ); in main()
151 BOOST_TEST( N::base::instances == 1 ); in main()
[all …]
Dmake_unique_array_noinit_test.cpp15 static unsigned instances; member in type
18 ++instances; in type()
22 --instances; in ~type()
30 unsigned type::instances = 0; member in type
44 BOOST_TEST(type::instances == 0); in main()
49 BOOST_TEST(type::instances == 3); in main()
51 BOOST_TEST(type::instances == 0); in main()
53 BOOST_TEST(type::instances == 0); in main()
58 BOOST_TEST(type::instances == 4); in main()
60 BOOST_TEST(type::instances == 0); in main()
[all …]
Dmake_unique_array_throws_test.cpp15 static unsigned instances; member in type
18 if (instances == 5) { in type()
21 ++instances; in type()
25 --instances; in ~type()
33 unsigned type::instances = 0; member in type
37 BOOST_TEST(type::instances == 0); in main()
42 BOOST_TEST(type::instances == 0); in main()
44 BOOST_TEST(type::instances == 0); in main()
49 BOOST_TEST(type::instances == 0); in main()
51 BOOST_TEST(type::instances == 0); in main()
[all …]
Dallocate_shared_test.cpp38 static int instances; member in X
44 ++instances; in X()
49 --instances; in ~X()
53 int X::instances = 0; member in X
77 BOOST_TEST( X::instances == 0 ); in main()
83 BOOST_TEST( X::instances == 1 ); in main()
89 BOOST_TEST( X::instances == 0 ); in main()
96 BOOST_TEST( X::instances == 1 ); in main()
102 BOOST_TEST( X::instances == 0 ); in main()
109 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dmake_shared_const_test.cpp38 static int instances; member in X
44 ++instances; in X()
49 --instances; in ~X()
53 int X::instances = 0; member in X
75 BOOST_TEST( X::instances == 0 ); in main()
81 BOOST_TEST( X::instances == 1 ); in main()
88 BOOST_TEST( X::instances == 0 ); in main()
95 BOOST_TEST( X::instances == 1 ); in main()
102 BOOST_TEST( X::instances == 0 ); in main()
109 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dallocate_local_shared_test.cpp48 static int instances; member in X
54 ++instances; in X()
59 --instances; in ~X()
63 int X::instances = 0; member in X
87 BOOST_TEST( X::instances == 0 ); in main()
93 BOOST_TEST( X::instances == 1 ); in main()
99 BOOST_TEST( X::instances == 0 ); in main()
106 BOOST_TEST( X::instances == 1 ); in main()
112 BOOST_TEST( X::instances == 0 ); in main()
119 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dmake_shared_test.cpp38 static int instances; member in X
44 ++instances; in X()
49 --instances; in ~X()
53 int X::instances = 0; member in X
82 BOOST_TEST( X::instances == 0 ); in main()
88 BOOST_TEST( X::instances == 1 ); in main()
95 BOOST_TEST( X::instances == 0 ); in main()
102 BOOST_TEST( X::instances == 1 ); in main()
109 BOOST_TEST( X::instances == 0 ); in main()
116 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dallocate_shared_alloc11_test.cpp66 static int instances; member in X
72 ++instances; in X()
77 --instances; in ~X()
81 int X::instances = 0; member in X
99 BOOST_TEST( X::instances == 0 ); in main()
105 BOOST_TEST( X::instances == 1 ); in main()
111 BOOST_TEST( X::instances == 0 ); in main()
118 BOOST_TEST( X::instances == 1 ); in main()
124 BOOST_TEST( X::instances == 0 ); in main()
131 BOOST_TEST( X::instances == 1 ); in main()
[all …]
Dallocate_shared_construct11_test.cpp75 static int instances; member in X
83 ++instances; in X()
88 --instances; in ~X()
94 int X::instances = 0; member in X
98 BOOST_TEST( X::instances == 0 ); in main()
104 BOOST_TEST( X::instances == 1 ); in main()
110 BOOST_TEST( X::instances == 0 ); in main()
117 BOOST_TEST( X::instances == 1 ); in main()
123 BOOST_TEST( X::instances == 0 ); in main()
130 BOOST_TEST( X::instances == 1 ); in main()
[all …]

12345678910>>...46