Lines Matching refs:bcp
8 template<typename T> constexpr bool bcp(T t) { in bcp() function
30 static_assert(bcp(1));
32 static_assert(bcp(1.0));
34 static_assert(bcp(nullptr));
38 static_assert(bcp("foo"));
42 static_assert(bcp<int*>(nullptr));
44 static_assert(bcp<const char*>(nullptr));
48 static_assert(!bcp(&x));
52 static_assert(bcp(ptr_to_int("foo")));
54 static_assert(!bcp(ptr_to_int(&x)));
58 static_assert(bcp(int_to_ptr(0)));
60 static_assert(bcp(int_to_ptr(123))); // GCC rejects these due to not recognizing