Home
last modified time | relevance | path

Searched refs:ConvertibleTo (Results 1 – 13 of 13) sorted by relevance

/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/predef.iterators/counted.iterator/
Dctor.conv.pass.cpp21 class ConvertibleTo class
34 ConvertibleTo() = default;
35 explicit constexpr ConvertibleTo(int *it) : it_(it) {} in ConvertibleTo() function in ConvertibleTo
39 constexpr ConvertibleTo& operator++() {++it_; return *this;} in operator ++()
40 constexpr ConvertibleTo operator++(int) in operator ++()
41 {ConvertibleTo tmp(*this); ++(*this); return tmp;} in operator ++()
56 std::counted_iterator iter1(ConvertibleTo<forward_iterator<int*>>{buffer}, 8); in test()
62 const std::counted_iterator iter1(ConvertibleTo<forward_iterator<int*>>{buffer}, 8); in test()
/external/clang/test/SemaObjCXX/
Dobjc-container-subscripting.mm48 struct ConvertibleTo { struct
57 template<typename T> ConvertibleTo<T> makeConvertible(); argument
60 ConvertibleTo<id> x;
61 ConvertibleTo<id> get();
64 NSMutableArray *test_array_convertibility(ConvertibleTo<NSMutableArray*> toArray,
65 ConvertibleTo<id> toId,
66 ConvertibleTo<int (^)(int)> toBlock,
67 ConvertibleTo<int> toInt,
81 id test_dict_convertibility(ConvertibleTo<NSMutableDictionary*> toDict,
82 ConvertibleTo<id> toId,
[all …]
Dliterals.mm54 struct ConvertibleTo { struct
69 template<typename T> ConvertibleTo<T> makeConvertible(); argument
72 ConvertibleTo<id> x;
73 ConvertibleTo<id> get();
82 void test_convertibility(ConvertibleTo<NSArray*> toArray,
83 ConvertibleTo<id> toId,
84 ConvertibleTo<int (^)(int)> toBlock,
85 ConvertibleTo<int> toInt,
91 …toInt // expected-error{{collection element of type 'ConvertibleTo<int>' is not an Objective-C obj…
97 …makeConvertible<id>, // expected-error{{collection element of type 'ConvertibleTo<id> ()' is not a…
[all …]
/external/libcxx/test/support/
Dpoisoned_hash_helper.hpp113 struct ConvertibleTo { struct
161 static_assert(can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_enabled()
162 static_assert(can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_enabled()
163 static_assert(can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_enabled()
164 static_assert(can_hash<Hash(ConvertibleTo<Key> const&&)>(), ""); in test_hash_enabled()
200 static_assert(!can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_disabled()
201 static_assert(!can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_disabled()
202 static_assert(!can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_disabled()
203 static_assert(!can_hash<Hash(ConvertibleTo<Key> const&&)>(), ""); in test_hash_disabled()
/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Dpoisoned_hash_helper.h111 struct ConvertibleTo { struct
163 static_assert(can_hash<Hash, ConvertibleTo<Key>&>(), ""); in test_hash_enabled()
164 static_assert(can_hash<Hash, ConvertibleTo<Key> const&>(), ""); in test_hash_enabled()
165 static_assert(can_hash<Hash, ConvertibleTo<Key>&&>(), ""); in test_hash_enabled()
166 static_assert(can_hash<Hash, ConvertibleTo<Key> const&&>(), ""); in test_hash_enabled()
202 static_assert(!can_hash<Hash, ConvertibleTo<Key>&>(), ""); in test_hash_disabled()
203 static_assert(!can_hash<Hash, ConvertibleTo<Key> const&>(), ""); in test_hash_disabled()
204 static_assert(!can_hash<Hash, ConvertibleTo<Key>&&>(), ""); in test_hash_disabled()
205 static_assert(!can_hash<Hash, ConvertibleTo<Key> const&&>(), ""); in test_hash_disabled()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/string.view/string.view.comparison/
Dless_equal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function
54 assert((ConvertibleTo<SV>(v[i]) <= v[j]) == expected); in test()
55 assert((v[i] <= ConvertibleTo<SV>(v[j])) == expected); in test()
Dgreater_equal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) >= v[j]) == expected); in test()
55 assert((v[i] >= ConvertibleTo<SV>(v[j])) == expected); in test()
Dgreater.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function
54 assert((ConvertibleTo<SV>(v[i]) > v[j]) == expected); in test()
55 assert((v[i] > ConvertibleTo<SV>(v[j])) == expected); in test()
Dless.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function
54 assert((ConvertibleTo<SV>(v[i]) < v[j]) == expected); in test()
55 assert((v[i] < ConvertibleTo<SV>(v[j])) == expected); in test()
Dequal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) == v[j]) == expected); in test()
55 assert((v[i] == ConvertibleTo<SV>(v[j])) == expected); in test()
Dnot_equal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) != v[j]) == expected); in test()
55 assert((v[i] != ConvertibleTo<SV>(v[j])) == expected); in test()
/external/golang-protobuf/internal/msgfmt/
Dformat.go98 if v := reflect.ValueOf(m); v.Type().ConvertibleTo(protocmpMessageType) {
/external/cronet/buildtools/third_party/libc++/trunk/docs/Status/
DCxx20Issues.csv199 "`3194 <https://wg21.link/LWG3194>`__","``ConvertibleTo``\ prose does not match code","Prague","|C…