Searched refs:get_if (Results 1 – 7 of 7) sorted by relevance
/external/libcxx/test/std/utilities/variant/variant.get/ |
D | get_if_index.pass.cpp | 32 static_assert(std::get_if<0>(v) == nullptr, ""); in test_const_get_if() 37 ASSERT_NOEXCEPT(std::get_if<0>(&v)); in test_const_get_if() 38 ASSERT_SAME_TYPE(decltype(std::get_if<0>(&v)), const int *); in test_const_get_if() 39 static_assert(*std::get_if<0>(&v) == 42, ""); in test_const_get_if() 40 static_assert(std::get_if<1>(&v) == nullptr, ""); in test_const_get_if() 45 ASSERT_SAME_TYPE(decltype(std::get_if<1>(&v)), const long *); in test_const_get_if() 46 static_assert(*std::get_if<1>(&v) == 42, ""); in test_const_get_if() 47 static_assert(std::get_if<0>(&v) == nullptr, ""); in test_const_get_if() 55 ASSERT_SAME_TYPE(decltype(std::get_if<0>(&v)), int *); in test_const_get_if() 56 assert(std::get_if<0>(&v) == &x); in test_const_get_if() [all …]
|
D | get_if_type.pass.cpp | 30 static_assert(std::get_if<int>(v) == nullptr, ""); in test_const_get_if() 35 ASSERT_NOEXCEPT(std::get_if<int>(&v)); in test_const_get_if() 36 ASSERT_SAME_TYPE(decltype(std::get_if<int>(&v)), const int *); in test_const_get_if() 37 static_assert(*std::get_if<int>(&v) == 42, ""); in test_const_get_if() 38 static_assert(std::get_if<const long>(&v) == nullptr, ""); in test_const_get_if() 43 ASSERT_SAME_TYPE(decltype(std::get_if<const long>(&v)), const long *); in test_const_get_if() 44 static_assert(*std::get_if<const long>(&v) == 42, ""); in test_const_get_if() 45 static_assert(std::get_if<int>(&v) == nullptr, ""); in test_const_get_if() 53 ASSERT_SAME_TYPE(decltype(std::get_if<int &>(&v)), int *); in test_const_get_if() 54 assert(std::get_if<int &>(&v) == &x); in test_const_get_if() [all …]
|
/external/scapy/scapy/arch/bpf/ |
D | core.py | 11 from scapy.arch.common import get_if, get_bpf_pointer 160 result = get_if(ifname, SIOCGIFFLAGS)
|
/external/scapy/scapy/arch/ |
D | linux.py | 34 from scapy.arch.common import get_if, get_bpf_pointer 105 return struct.unpack("16xh6s8x",get_if(iff,SIOCGIFHWADDR)) 109 return get_if(iff, SIOCGIFADDR)[20:24] 131 ifflags = struct.unpack("16xH14x",get_if(i,SIOCGIFFLAGS))[0] 369 return int(struct.unpack("I",get_if(iff, SIOCGIFINDEX)[16:20])[0])
|
D | common.py | 18 def get_if(iff, cmd): function
|
/external/libcxx/include/ |
D | variant | 136 get_if(variant<Types...>*) noexcept; 140 get_if(const variant<Types...>*) noexcept; 144 get_if(variant<Types...>*) noexcept; 148 get_if(const variant<Types...>*) noexcept; 1420 get_if(variant<_Types...>* __v) noexcept { 1429 get_if(const variant<_Types...>* __v) noexcept { 1438 get_if(variant<_Types...>* __v) noexcept { 1440 return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v); 1446 get_if(const variant<_Types...>* __v) noexcept { 1448 return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_parser.cc | 2073 if (auto* linear_index = absl::get_if<int64>(&index)) { in SetValueInLiteralHelper() 2084 auto* multi_index = absl::get_if<absl::Span<const int64>>(&index); in SetValueInLiteralHelper()
|