Home
last modified time | relevance | path

Searched refs:is_null (Results 1 – 10 of 10) sorted by relevance

/system/utest/fit/
A Dnullable_tests.cpp157 static_assert(!fit::is_null(5), "");
233 bool is_null() { in is_null() function
239 EXPECT_FALSE(fit::is_null(ncf)); in is_null()
242 EXPECT_TRUE(fit::is_null(nct)); in is_null()
245 EXPECT_FALSE(fit::is_null(nf)); in is_null()
248 EXPECT_TRUE(fit::is_null(nt)); in is_null()
251 EXPECT_FALSE(fit::is_null(nif)); in is_null()
254 EXPECT_TRUE(fit::is_null(nit)); in is_null()
260 EXPECT_TRUE(fit::is_null(npt)); in is_null()
263 EXPECT_FALSE(fit::is_null(nn)); in is_null()
[all …]
/system/utest/fidl/
A Dcpp_types_tests.cpp21 EXPECT_TRUE(view->is_null()); in string_view_test()
44 EXPECT_TRUE(view->is_null()); in vector_view_test()
/system/ulib/fit/include/lib/fit/
A Dnullable.h44 constexpr inline bool is_null(const T& value) {
237 return (lhs.has_value() != is_null(rhs)) && (!lhs.has_value() || *lhs == rhs);
241 return (lhs.has_value() == is_null(rhs)) || (lhs.has_value() && *lhs != rhs);
246 return (is_null(lhs) != rhs.has_value()) && (!rhs.has_value() || lhs == *rhs);
250 return (is_null(lhs) == rhs.has_value()) || (rhs.has_value() && lhs != *rhs);
A Dpromise.h468 assert(!is_null(handler)); in then()
525 assert(!is_null(handler)); in and_then()
576 assert(!is_null(handler)); in or_else()
636 assert(!is_null(handler)); in inspect()
858 assert(!is_null(handler)); in make_promise()
A Dfunction.h248 if (is_null(target)) { in initialize_target()
/system/ulib/fidl/include/lib/fidl/cpp/
A Dstring_view.h24 bool is_null() const { return fidl_string_t::data == nullptr; } in is_null() function
A Dvector_view.h25 bool is_null() const { return fidl_vector_t::data == nullptr; } in is_null() function
/system/ulib/fbl/include/fbl/
A Dfunction.h59 virtual bool is_null() const = 0;
74 bool is_null() const final { return true; }
98 bool is_null() const final { return false; }
125 bool is_null() const final { return false; }
235 return !holder_.target().is_null();
/system/utest/fbl/
A Dfunction_tests.cpp621 bool is_null; member
622 bool operator==(decltype(nullptr)) const { return is_null; } in operator ==()
/system/ulib/fit/
A DREADME.md131 null closures and enter an "invalid" state. Using fit::is_null and

Completed in 159 milliseconds