Home
last modified time | relevance | path

Searched refs:holds_alternative (Results 1 – 7 of 7) sorted by relevance

/external/libcxx/test/std/utilities/variant/variant.get/
Dholds_alternative.pass.cpp25 static_assert(std::holds_alternative<int>(v), ""); in main()
30 static_assert(std::holds_alternative<int>(v), ""); in main()
31 static_assert(!std::holds_alternative<long>(v), ""); in main()
36 ASSERT_NOEXCEPT(std::holds_alternative<int>(v)); in main()
/external/catch2/projects/SelfTest/UsageTests/
DToStringVariant.tests.cpp70 REQUIRE( std::holds_alternative<inner>(value) );
71 REQUIRE( std::holds_alternative<float>(std::get<inner>(value)) );
76 REQUIRE( std::holds_alternative<inner>(value) );
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_compiler.cc351 if (absl::holds_alternative<xla::Shape>(shape)) { in operator ==()
352 if (!absl::holds_alternative<xla::Shape>(other.shape)) { in operator ==()
360 if (!absl::holds_alternative<TensorShape>(other.shape)) { in operator ==()
407 if (absl::holds_alternative<TensorShape>(shape)) { in DimensionSizes()
416 if (absl::holds_alternative<TensorShape>(shape)) { in ShapeHumanString()
621 if (absl::holds_alternative<TensorShape>(arg.shape)) { in XLAShapeForArgument()
630 if (absl::holds_alternative<xla::Shape>(arg.shape)) { in XLAShapeForArgument()
644 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()
656 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()
674 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dmaybe_owning_device_memory.cc29 return absl::holds_alternative<OwningDeviceMemory>(mem_); in HasOwnership()
/external/libcxx/include/
Dvariant104 constexpr bool holds_alternative(const variant<Types...>&) noexcept;
1319 constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
/external/googletest/googlemock/include/gmock/
Dgmock-matchers.h3290 void holds_alternative() {}
3306 return holds_alternative<T>(value) && matcher_.Matches(get<T>(value));
3309 if (!holds_alternative<T>(value)) {
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc6699 friend bool holds_alternative(const SampleVariantIntString& value) { in holds_alternative() function