Home
last modified time | relevance | path

Searched refs:get_if (Results 1 – 24 of 24) sorted by relevance

/third_party/boost/libs/variant2/test/
Dvariant_get_by_index.cpp31 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<0>(&v)), int*>)); in main()
39 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<0>(&v)), int const*>)); in main()
47 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<0>(&v)), int const*>)); in main()
55 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<0>(&v)), int const volatile*>)); in main()
62 BOOST_TEST_EQ( get_if<0>(&v), &get<0>(v) ); in main()
71 BOOST_TEST_EQ( get_if<0>(&v), &get<0>(v) ); in main()
80 BOOST_TEST_EQ( get_if<0>(&v), &get<0>(v) ); in main()
89 BOOST_TEST_EQ( get_if<0>(&v), &get<0>(v) ); in main()
99 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<0>(&v)), int*>)); in main()
103 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<1>(&v)), float*>)); in main()
[all …]
Dvariant_get_by_type.cpp31 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<int>(&v)), int*>)); in main()
39 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<int>(&v)), int const*>)); in main()
47 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<int const>(&v)), int const*>)); in main()
55 … BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<int volatile>(&v)), int const volatile*>)); in main()
62 BOOST_TEST_EQ( get_if<int>(&v), &get<int>(v) ); in main()
71 BOOST_TEST_EQ( get_if<int>(&v), &get<int>(v) ); in main()
80 BOOST_TEST_EQ( get_if<int>(&v), &get<int>(v) ); in main()
89 BOOST_TEST_EQ( get_if<int>(&v), &get<int>(v) ); in main()
99 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<int>(&v)), int*>)); in main()
103 BOOST_TEST_TRAIT_TRUE((std::is_same<decltype(get_if<float>(&v)), float*>)); in main()
[all …]
Dvariant_get_by_index_cx.cpp29 STATIC_ASSERT_IF( get_if<0>(&v) == &get<0>(v) ); in main()
37 STATIC_ASSERT_IF( get_if<0>(&v) == &get<0>(v) ); in main()
45 STATIC_ASSERT_IF( get_if<0>(&v) == &get<0>(v) ); in main()
46 STATIC_ASSERT_IF( get_if<1>(&v) == nullptr ); in main()
54 STATIC_ASSERT_IF( get_if<0>(&v) == &get<0>(v) ); in main()
55 STATIC_ASSERT_IF( get_if<1>(&v) == nullptr ); in main()
63 STATIC_ASSERT_IF( get_if<0>(&v) == nullptr ); in main()
64 STATIC_ASSERT_IF( get_if<1>(&v) == &get<1>(v) ); in main()
72 STATIC_ASSERT_IF( get_if<0>(&v) == &get<0>(v) ); in main()
73 STATIC_ASSERT_IF( get_if<1>(&v) == nullptr ); in main()
[all …]
Dvariant_get_by_type_cx.cpp29 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
37 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
45 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
46 STATIC_ASSERT_IF( get_if<float>(&v) == nullptr ); in main()
54 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
55 STATIC_ASSERT_IF( get_if<float>(&v) == nullptr ); in main()
63 STATIC_ASSERT_IF( get_if<int>(&v) == nullptr ); in main()
64 STATIC_ASSERT_IF( get_if<float>(&v) == &get<float>(v) ); in main()
72 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
80 STATIC_ASSERT_IF( get_if<int>(&v) == &get<int>(v) ); in main()
[all …]
/third_party/boost/boost/outcome/experimental/status-code/
Dresult.hpp119 std::get_if<0>(this)->throw_exception(); in _check()
273 return *std::get_if<0>(this); in error()
286 return *std::get_if<0>(this); in error()
299 return std::move(*std::get_if<0>(this)); in error()
312 return std::move(*std::get_if<0>(this)); in error()
322 return *std::get_if<1>(this); in assume_value()
331 return *std::get_if<1>(this); in assume_value()
340 return std::move(*std::get_if<1>(this)); in assume_value()
349 return std::move(*std::get_if<1>(this)); in assume_value()
359 return *std::get_if<0>(this); in assume_error()
[all …]
Dstatus_code_ptr.hpp141 …s_status_code<StatusCode>::value, bool>::type = true> inline StatusCode *get_if(status_code<erased… in get_if() function
155 …us_code<StatusCode>::value, bool>::type = true> inline const StatusCode *get_if(const status_code<… in get_if() function
/third_party/abseil-cpp/absl/types/
Dvariant_test.cc343 EXPECT_TRUE((absl::get_if<value_type1>(&original) == in TYPED_TEST()
344 absl::get_if<value_type1>(&copied)) || in TYPED_TEST()
346 EXPECT_TRUE((absl::get_if<value_type2>(&original) == in TYPED_TEST()
347 absl::get_if<value_type2>(&copied)) || in TYPED_TEST()
349 EXPECT_TRUE((absl::get_if<value_type3>(&original) == in TYPED_TEST()
350 absl::get_if<value_type3>(&copied)) || in TYPED_TEST()
352 EXPECT_TRUE((absl::get_if<value_type4>(&original) == in TYPED_TEST()
353 absl::get_if<value_type4>(&copied)) || in TYPED_TEST()
355 EXPECT_TRUE((absl::get_if<value_type1>(&original) == in TYPED_TEST()
356 absl::get_if<value_type1>(&copied)) || in TYPED_TEST()
[all …]
Dvariant.h56 using std::get_if;
372 get_if(variant<Types...>* v) noexcept {
383 get_if(const variant<Types...>* v) noexcept {
393 constexpr absl::add_pointer_t<T> get_if(variant<Types...>* v) noexcept {
394 return absl::get_if<variant_internal::IndexOf<T, Types...>::value>(v);
400 constexpr absl::add_pointer_t<const T> get_if(
402 return absl::get_if<variant_internal::IndexOf<T, Types...>::value>(v);
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dvariant_test.cc343 EXPECT_TRUE((absl::get_if<value_type1>(&original) == in TYPED_TEST()
344 absl::get_if<value_type1>(&copied)) || in TYPED_TEST()
346 EXPECT_TRUE((absl::get_if<value_type2>(&original) == in TYPED_TEST()
347 absl::get_if<value_type2>(&copied)) || in TYPED_TEST()
349 EXPECT_TRUE((absl::get_if<value_type3>(&original) == in TYPED_TEST()
350 absl::get_if<value_type3>(&copied)) || in TYPED_TEST()
352 EXPECT_TRUE((absl::get_if<value_type4>(&original) == in TYPED_TEST()
353 absl::get_if<value_type4>(&copied)) || in TYPED_TEST()
355 EXPECT_TRUE((absl::get_if<value_type1>(&original) == in TYPED_TEST()
356 absl::get_if<value_type1>(&copied)) || in TYPED_TEST()
[all …]
Dvariant.h56 using std::get_if;
372 get_if(variant<Types...>* v) noexcept {
383 get_if(const variant<Types...>* v) noexcept {
393 constexpr absl::add_pointer_t<T> get_if(variant<Types...>* v) noexcept {
394 return absl::get_if<variant_internal::IndexOf<T, Types...>::value>(v);
400 constexpr absl::add_pointer_t<const T> get_if(
402 return absl::get_if<variant_internal::IndexOf<T, Types...>::value>(v);
/third_party/boost/boost/histogram/axis/
Dvariant.hpp232 auto get_if(variant<Us...>* v) { in get_if() function
233 return detail::variant_access::template get_if<T>(v); in get_if()
238 auto get_if(const variant<Us...>* v) { in get_if() function
239 return detail::variant_access::template get_if<T>(v); in get_if()
245 auto tp = get_if<T>(&v); in get()
253 auto tp = get_if<T>(&v); in get()
261 auto tp = get_if<T>(&v); in get()
280 auto get_if(U* u) { in get_if() function
286 auto get_if(const U* u) { in get_if() function
314 const U* tp = detail::variant_access::template get_if<U>(&u); in operator ==()
Dtraits.hpp80 static auto get_if(Variant* v) noexcept { in get_if() function
85 auto ptp = variant2::get_if<TP>(vptr); in get_if()
88 [](auto* vptr) { return variant2::get_if<T>(vptr); }, &(v->impl)); in get_if()
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DConverter.cpp35 if (auto* dict = std::get_if<interop::GPUExtent3DDict>(&in)) { in Convert()
41 if (auto* vec = std::get_if<std::vector<interop::GPUIntegerCoordinate>>(&in)) { in Convert()
69 if (auto* dict = std::get_if<interop::GPUColorDict>(&in)) { in Convert()
76 if (auto* vec = std::get_if<std::vector<double>>(&in)) { in Convert()
146 if (auto* view = std::get_if<interop::ArrayBufferView>(&in)) { in Convert()
156 if (auto* arr = std::get_if<interop::ArrayBuffer>(&in)) { in Convert()
839 if (auto* op = std::get_if<interop::GPULoadOp>(&in.loadValue)) { in Convert()
843 } else if (auto* color = std::get_if<interop::GPUColor>(&in.loadValue)) { in Convert()
861 if (auto* op = std::get_if<interop::GPULoadOp>(&in.depthLoadValue)) { in Convert()
865 } else if (auto* value = std::get_if<float>(&in.depthLoadValue)) { in Convert()
[all …]
/third_party/mesa3d/src/tool/pps/
Dpps_config.cc183 if (auto d_val = std::get_if<double>(&value)) { in main()
185 } else if (auto i_val = std::get_if<int64_t>(&value)) in main()
Dpps_datasource.cc225 if (auto d_value = std::get_if<double>(&value)) { in add_samples()
227 } else if (auto i_value = std::get_if<int64_t>(&value)) { in add_samples()
/third_party/flutter/engine/flutter/lib/ui/painting/
Dcodec.cc159 std::get_if<ImageDecoder::ImageInfo>(&image_info_results)) { in InstantiateImageCodec()
161 } else if (auto error = std::get_if<std::string>(&image_info_results)) { in InstantiateImageCodec()
/third_party/boost/libs/variant2/doc/variant2/
Dreference.adoc104 // get_if
108 get_if(variant<T...>* v) noexcept;
111 get_if(const variant<T...>* v) noexcept;
115 get_if(variant<T...>* v) noexcept;
118 get_if(const variant<T...>* v) noexcept;
740 ### get_if
745 get_if(variant<T...>* v) noexcept;
750 get_if(const variant<T...>* v) noexcept;
763 get_if(variant<T...>* v) noexcept;
768 get_if(const variant<T...>* v) noexcept;
[all …]
Doverview.adoc253 to use `get_if`. Instead of a reference to the contained value, it returns
254 a pointer to it, returning `nullptr` to indicate type mismatch. `get_if`
261 if( int const * p = get_if<int>(&v) )
265 else if( float const * p = get_if<float>(&v) )
/third_party/boost/libs/config/test/
Dboost_no_cxx17_hdr_variant.ipp23 using std::get_if;
/third_party/boost/boost/histogram/detail/
Dvariant_proxy.hpp45 T* new_address = variant_access::template get_if<T>(&this->variant); in serialize()
/third_party/boost/libs/histogram/test/
Daxis_variant_test.cpp241 const auto* tb = axis::get_if<axis::integer<>>(&b); in main()
243 const auto* tc = axis::get_if<axis::regular<>>(&b); in main()
/third_party/boost/boost/iostreams/
Dchecked_operations.hpp42 typename int_type_of<T>::type get_if(T& t) in get_if() function
/third_party/boost/boost/variant2/
Dvariant.hpp443 …typename std::add_pointer<variant_alternative_t<I, variant<T...>>>::type get_if(variant<T...>* v) … in get_if() function
449 …me std::add_pointer<const variant_alternative_t<I, variant<T...>>>::type get_if(variant<T...> cons… in get_if() function
455 template<class U, class... T> constexpr typename std::add_pointer<U>::type get_if(variant<T...>* v)… in get_if() function
464 template<class U, class... T> constexpr typename std::add_pointer<U const>::type get_if(variant<T..… in get_if() function
/third_party/chromium/patch/
D0004-3.2-Beta5.patch41450 + if (auto* str = absl::get_if<std::u16string>(&payload)) {
41452 + } else if (auto* array_buffer = absl::get_if<std::vector<uint8_t>>(&payload)) {