/third_party/boost/libs/variant2/test/ |
D | variant_alternative.cpp | 23 BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void>>, void>)); in main() 24 … BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void> const>, void const>)); in main() 25 …BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void> volatile>, void volatil… in main() 26 …BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void> const volatile>, void c… in main() 28 BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<char>&>, char&>)); in main() 29 …BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<char> const&>, char const&>)); in main() 30 BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<char>&&>, char&&>)); in main() 31 …BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<char> const&&>, char const&&>… in main() 33 BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void, int>>, void>)); in main() 34 …BOOST_TEST_TRAIT_TRUE((std::is_same<variant_alternative_t<0, variant<void, int> const>, void const… in main() [all …]
|
D | variant_size.cpp | 23 BOOST_TEST_EQ( (variant_size<variant<>>::value), 0 ); in main() 24 BOOST_TEST_EQ( (variant_size<variant<> const>::value), 0 ); in main() 25 BOOST_TEST_EQ( (variant_size<variant<> volatile>::value), 0 ); in main() 26 BOOST_TEST_EQ( (variant_size<variant<> const volatile>::value), 0 ); in main() 28 BOOST_TEST_EQ( (variant_size<variant<>&>::value), 0 ); in main() 29 BOOST_TEST_EQ( (variant_size<variant<> const&>::value), 0 ); in main() 30 BOOST_TEST_EQ( (variant_size<variant<>&&>::value), 0 ); in main() 31 BOOST_TEST_EQ( (variant_size<variant<> const&&>::value), 0 ); in main() 33 BOOST_TEST_EQ( (variant_size<variant<void>>::value), 1 ); in main() 34 BOOST_TEST_EQ( (variant_size<variant<void> const>::value), 1 ); in main() [all …]
|
D | variant_move_construct.cpp | 62 test( variant<int>() ); in main() 63 test( variant<int>(1) ); in main() 65 test( variant<int const>() ); in main() 66 test( variant<int const>(1) ); in main() 68 test( variant<int, float>() ); in main() 69 test( variant<int, float>(1) ); in main() 70 test( variant<int, float>(3.14f) ); in main() 72 test( variant<int const, float const>() ); in main() 73 test( variant<int const, float const>(1) ); in main() 74 test( variant<int const, float const>(3.14f) ); in main() [all …]
|
D | variant_copy_construct.cpp | 72 test( variant<int>() ); in main() 73 test( variant<int>(1) ); in main() 75 test( variant<int const>() ); in main() 76 test( variant<int const>(1) ); in main() 78 test( variant<int, float>() ); in main() 79 test( variant<int, float>(1) ); in main() 80 test( variant<int, float>(3.14f) ); in main() 82 test( variant<int const, float const>() ); in main() 83 test( variant<int const, float const>(1) ); in main() 84 test( variant<int const, float const>(3.14f) ); in main() [all …]
|
D | variant_move_assign_cx.cpp | 49 constexpr auto w = test<variant<int>, int>( variant<int>( 1 ) ); in main() 54 constexpr auto w = test<variant<X>, X>( variant<X>( 1 ) ); in main() 62 constexpr auto w = test<variant<Y>, Y>( variant<Y>( 1 ) ); in main() 69 constexpr auto w = test<variant<int, float>, int>( variant<int, float>( 1 ) ); in main() 74 constexpr auto w = test<variant<int, float>, float>( variant<int, float>( 3.0f ) ); in main() 79 … constexpr auto w = test<variant<int, int, float>, float>( variant<int, int, float>( 3.0f ) ); in main() 84 constexpr auto w = test<variant<E, E, X>, X>( variant<E, E, X>( 1 ) ); in main() 89 …constexpr auto w = test<variant<int, int, float, float, X>, X>( variant<int, int, float, float, X>… in main() 97 constexpr auto w = test<variant<E, E, Y>, Y>( variant<E, E, Y>( 1 ) ); in main() 102 …constexpr auto w = test<variant<int, int, float, float, Y>, Y>( variant<int, int, float, float, Y>… in main()
|
D | variant_default_construct.cpp | 31 variant<int> v; in main() 38 variant<int const> v; in main() 45 variant<int, float, std::string> v; in main() 52 variant<int, int, std::string> v; in main() 59 variant<std::string> v; in main() 66 variant<std::string const> v; in main() 73 variant<std::string, int, float> v; in main() 80 variant<std::string, std::string, float> v; in main() 87 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_default_constructible<variant<int>>)); in main() 88 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_default_constructible<variant<int const>>)); in main() [all …]
|
D | variant_copy_assign.cpp | 68 variant<int> v; in main() 71 variant<int> v2( 1 ); in main() 76 variant<int> const v3( 2 ); in main() 83 variant<int, float> v; in main() 87 variant<int, float> v2( 1 ); in main() 93 variant<int, float> v3( 3.14f ); in main() 99 variant<int, float> const v4( 3.15f ); in main() 107 variant<int, int, float, std::string> v; in main() 111 variant<int, int, float, std::string> v2( in_place_index_t<1>{}, 1 ); in main() 117 variant<int, int, float, std::string> v3( 3.14f ); in main() [all …]
|
D | variant_move_assign.cpp | 68 variant<int> v; in main() 71 variant<int> v2( 1 ); in main() 76 variant<int> v3( 2 ); in main() 83 variant<int, float> v; in main() 87 variant<int, float> v2( 1 ); in main() 93 variant<int, float> v3( 3.14f ); in main() 99 variant<int, float> v4( 3.15f ); in main() 107 variant<int, int, float, std::string> v; in main() 111 variant<int, int, float, std::string> v2( in_place_index_t<1>{}, 1 ); in main() 117 variant<int, int, float, std::string> v3( 3.14f ); in main() [all …]
|
D | variant_copy_assign_cx.cpp | 48 constexpr variant<int> v( 1 ); in main() 49 constexpr auto w = test<variant<int>, int>( v ); in main() 54 constexpr variant<X> v( 1 ); in main() 55 constexpr auto w = test<variant<X>, X>( v ); in main() 63 constexpr variant<Y> v( 1 ); in main() 64 constexpr auto w = test<variant<Y>, Y>( v ); in main() 71 constexpr variant<int, float> v( 1 ); in main() 72 constexpr auto w = test<variant<int, float>, int>( v ); in main() 77 constexpr variant<int, float> v( 3.0f ); in main() 78 constexpr auto w = test<variant<int, float>, float>( v ); in main() [all …]
|
/third_party/boost/libs/exception/doc/source/ |
D | boost-exception.reno | 85 <variant>2</variant> 119 <variant>2</variant> 160 <variant>2</variant> 194 <variant>2</variant> 243 <variant>2</variant> 277 <variant>2</variant> 318 <variant>2</variant> 363 <variant>2</variant> 412 <variant>2</variant> 457 <variant>2</variant> [all …]
|
/third_party/boost/libs/variant2/benchmark/ |
D | benchmark1.md | 11 boost::variant (-DONLY_BV): 2627 ms 12 std::variant (-DONLY_SV): 1425 ms 21 boost::variant: 102776 ms; S=7.14286e+14 22 std::variant: 40590 ms; S=7.14286e+14 27 boost::variant: 110441 ms; S=7.14286e+14 28 std::variant: 92974 ms; S=7.14286e+14 37 boost::variant (-DONLY_BV): 3335 ms 38 std::variant (-DONLY_SV): 1903 ms 47 boost::variant: 11312 ms; S=7.14286e+14 48 std::variant: 4617 ms; S=7.14286e+14 [all …]
|
D | benchmark2.md | 11 boost::variant (-DONLY_BV): 2972 ms 12 std::variant (-DONLY_SV): 1057 ms 21 boost::variant: 60438 ms; S=416666583333336 22 std::variant: 20707 ms; S=416666583333336 31 boost::variant (-DONLY_BV): 3252 ms 32 std::variant (-DONLY_SV): 1372 ms 41 boost::variant: 6191 ms; S=416666583333336 42 std::variant: 2193 ms; S=416666583333336 53 boost::variant (-DONLY_BV): 3113 ms 54 std::variant (-DONLY_SV): 1719 ms [all …]
|
/third_party/boost/boost/beast/core/detail/ |
D | variant.hpp | 30 class variant class 37 variant& self; 47 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 54 variant& self; 55 variant const& other; 65 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 74 variant& self; 75 variant& other; 85 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 95 variant const& self; [all …]
|
/third_party/boost/libs/beast/include/boost/beast/core/detail/ |
D | variant.hpp | 30 class variant class 37 variant& self; 47 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 54 variant& self; 55 variant const& other; 65 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 74 variant& self; 75 variant& other; 85 mp11::mp_at_c<variant, I::value - 1>; in operator ()() 95 variant const& self; [all …]
|
/third_party/glib/gio/ |
D | gsettings-mapping.c | 28 GVariant *variant = NULL; in g_settings_set_mapping_int() local 41 variant = g_variant_new_int16 ((gint16) l); in g_settings_set_mapping_int() 46 variant = g_variant_new_uint16 ((guint16) l); in g_settings_set_mapping_int() 51 variant = g_variant_new_int32 ((gint) l); in g_settings_set_mapping_int() 56 variant = g_variant_new_uint32 ((guint) l); in g_settings_set_mapping_int() 61 variant = g_variant_new_int64 ((gint64) l); in g_settings_set_mapping_int() 66 variant = g_variant_new_uint64 ((guint64) l); in g_settings_set_mapping_int() 71 variant = g_variant_new_handle ((guint) l); in g_settings_set_mapping_int() 74 variant = g_variant_new_double ((gdouble) l); in g_settings_set_mapping_int() 76 return variant; in g_settings_set_mapping_int() [all …]
|
/third_party/glib/gio/tests/ |
D | gdbus-proxy-well-known-name.c | 59 GVariant *variant; in test_proxy_well_known_name() local 151 variant = g_dbus_proxy_get_cached_property (p, "y"); in test_proxy_well_known_name() 152 g_assert (variant != NULL); in test_proxy_well_known_name() 153 g_assert_cmpint (g_variant_get_byte (variant), ==, 1); in test_proxy_well_known_name() 154 g_variant_unref (variant); in test_proxy_well_known_name() 155 variant = g_dbus_proxy_get_cached_property (p2, "y"); in test_proxy_well_known_name() 156 g_assert (variant != NULL); in test_proxy_well_known_name() 157 g_assert_cmpint (g_variant_get_byte (variant), ==, 1); in test_proxy_well_known_name() 158 g_variant_unref (variant); in test_proxy_well_known_name() 159 variant = g_dbus_proxy_get_cached_property (ap, "y"); in test_proxy_well_known_name() [all …]
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_shader.c | 380 struct svga_shader_variant *variant = shader->variants; in svga_search_shader_key() local 384 for ( ; variant; variant = variant->next) { in svga_search_shader_key() 385 if (svga_compile_keys_equal(key, &variant->key)) in svga_search_shader_key() 386 return variant; in svga_search_shader_key() 412 struct svga_shader_variant *variant, in define_gb_shader_vgpu9() argument 423 variant->gb_shader = sws->shader_create(sws, variant->type, in define_gb_shader_vgpu9() 424 variant->tokens, codeLen); in define_gb_shader_vgpu9() 428 if (!variant->gb_shader) in define_gb_shader_vgpu9() 431 ret = SVGA3D_BindGBShader(svga->swc, variant->gb_shader); in define_gb_shader_vgpu9() 441 struct svga_shader_variant *variant, in define_gb_shader_vgpu10() argument [all …]
|
/third_party/boost/boost/variant/ |
D | variant.hpp | 119 namespace detail { namespace variant { namespace 291 struct is_variant_constructible_from< boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>, Types >: 294 typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::recursive_enabled_types, 297 …typename boost::mpl::end< typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::recursive_enabled… 302 struct is_variant_constructible_from< const boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>& , Types >: 303 is_variant_constructible_from<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>, Types > 307 struct is_variant_constructible_from< boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>& , Types >: 308 is_variant_constructible_from<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>, Types > 314 struct is_variant_constructible_from< boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>&& , Types >: 315 is_variant_constructible_from<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>, Types > [all …]
|
D | get.hpp | 66 namespace detail { namespace variant { namespace 122 boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >* operand in relaxed_get() 129 detail::variant::get_visitor<U> v; in relaxed_get() 137 const boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >* operand in relaxed_get() 144 detail::variant::get_visitor<const U> v; in relaxed_get() 152 boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >& operand in relaxed_get() 168 const boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >& operand in relaxed_get() 191 boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >&& operand in relaxed_get() 216 boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >* operand in strict_get() 221 …(boost::detail::variant::holds_element<boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >, U >::value), in strict_get() [all …]
|
/third_party/abseil-cpp/absl/types/ |
D | variant.h | 59 using std::variant; 123 class variant; variable 141 void swap(variant<Ts...>& v, variant<Ts...>& w) noexcept(noexcept(v.swap(w))) { in swap() 175 struct variant_size<variant<Ts...>> 218 struct variant_alternative<I, variant<Types...>> { 220 variant_internal::VariantAlternativeSfinaeT<I, variant<Types...>>; 264 constexpr bool holds_alternative(const variant<Types...>& v) noexcept { 266 variant_internal::UnambiguousIndexOfImpl<variant<Types...>, T, 270 variant_internal::UnambiguousIndexOf<variant<Types...>, T>::value; 300 constexpr T& get(variant<Types...>& v) { // NOLINT [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
D | variant.h | 59 using std::variant; 123 class variant; variable 141 void swap(variant<Ts...>& v, variant<Ts...>& w) noexcept(noexcept(v.swap(w))) { in swap() 175 struct variant_size<variant<Ts...>> 218 struct variant_alternative<I, variant<Types...>> { 220 variant_internal::VariantAlternativeSfinaeT<I, variant<Types...>>; 264 constexpr bool holds_alternative(const variant<Types...>& v) noexcept { 266 variant_internal::UnambiguousIndexOfImpl<variant<Types...>, T, 270 variant_internal::UnambiguousIndexOf<variant<Types...>, T>::value; 300 constexpr T& get(variant<Types...>& v) { // NOLINT [all …]
|
/third_party/boost/libs/variant/test/ |
D | overload_selection.cpp | 30 bool foo(const boost::variant<A, B>& ) { in foo() 34 bool foo(const boost::variant<C, D>& ) { in foo() 42 boost::variant<B, A> v; in test_overload_selection_variant_constructor() 59 struct assignment_tester: boost::variant<C, D>, boost::variant<B, A> { 60 using boost::variant<B, A>::operator=; 61 using boost::variant<C, D>::operator=; 68 const int which0 = static_cast< boost::variant<B, A>& >(tester).which(); in test_overload_selection_variant_assignment() 71 boost::variant<A, B> b; in test_overload_selection_variant_assignment() 74 const int which1 = static_cast< boost::variant<B, A>& >(tester).which(); in test_overload_selection_variant_assignment() 80 typedef boost::variant<int> my_variant; [all …]
|
/third_party/boost/boost/histogram/axis/ |
D | variant.hpp | 32 class variant : public iterator_mixin<variant<Ts...>> { class 33 using impl_type = boost::variant2::variant<Ts...>; 36 using is_bounded_type = mp11::mp_contains<variant, std::decay_t<T>>; 42 traits::metadata(std::declval<std::remove_pointer_t<mp11::mp_first<variant>>>()))>>; 46 variant() = default; 47 variant(const variant&) = default; 48 variant& operator=(const variant&) = default; 49 variant(variant&&) = default; 50 variant& operator=(variant&&) = default; 53 variant(T&& t) : impl(std::forward<T>(t)) {} in variant() function in boost::histogram::axis::variant [all …]
|
/third_party/node/test/parallel/ |
D | test-trace-exit.js | 8 const variant = process.argv[process.argv.length - 1]; constant 10 case variant === 'main-thread': { 13 case variant === 'main-thread-exit': { 16 case variant.startsWith('worker-thread'): { 17 const worker = new Worker(__filename, { workerData: variant }); 33 for (const { execArgv, variant, warnings } of [ property 34 { execArgv: ['--trace-exit'], variant: 'main-thread-exit', warnings: 1 }, property 35 { execArgv: [], variant: 'main-thread-exit', warnings: 0 }, property 36 { execArgv: ['--trace-exit'], variant: 'main-thread', warnings: 0 }, property 37 { execArgv: [], variant: 'main-thread', warnings: 0 }, property [all …]
|
/third_party/boost/libs/variant2/doc/variant2/ |
D | reference.adoc | 14 ## <boost/variant2/variant.hpp> 32 // variant 34 template<class... T> class variant; 51 struct variant_size<variant<T...>>: 69 struct variant_alternative<I, variant<T...>>; 78 constexpr bool holds_alternative(const variant<T...>& v) noexcept; 83 constexpr variant_alternative_t<I, variant<T...>>& 84 get(variant<T...>& v); 86 constexpr variant_alternative_t<I, variant<T...>>&& 87 get(variant<T...>&& v); [all …]
|