Lines Matching refs:is_pointer
230 // Verify that is_pointer is true for some pointer types.
231 EXPECT_TRUE(is_pointer<int*>::value);
232 EXPECT_TRUE(is_pointer<void*>::value);
233 EXPECT_TRUE(is_pointer<string*>::value);
234 EXPECT_TRUE(is_pointer<const void*>::value);
235 EXPECT_TRUE(is_pointer<volatile float* const*>::value);
237 // Verify that is_pointer is false for some non-pointer types.
238 EXPECT_FALSE(is_pointer<void>::value);
239 EXPECT_FALSE(is_pointer<float&>::value);
240 EXPECT_FALSE(is_pointer<long>::value);
241 EXPECT_FALSE(is_pointer<vector<int*> >::value);
242 EXPECT_FALSE(is_pointer<int[5]>::value);
246 EXPECT_TRUE(is_pointer<int (*)(int x)>::value);
247 EXPECT_FALSE(is_pointer<void(char x)>::value);
248 EXPECT_FALSE(is_pointer<double (&)(string x)>::value);
250 // Verify that is_pointer<T> is true for some cv-qualified pointer types,
252 EXPECT_TRUE(is_pointer<int* const>::value);
253 EXPECT_TRUE(is_pointer<const void* volatile>::value);
254 EXPECT_TRUE(is_pointer<char** const volatile>::value);
255 EXPECT_FALSE(is_pointer<const int>::value);
256 EXPECT_FALSE(is_pointer<volatile vector<int*> >::value);
257 EXPECT_FALSE(is_pointer<const volatile double>::value);