/external/clang/test/SemaCXX/ |
D | enable_if.cpp | 11 …X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate d… 13 void f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); 14 …void f(int n) __attribute__((enable_if(n == 1, "chosen when 'n' is one"))); // expected-note{{mem… 16 …void g(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note{{ca… 18 …void h(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero"))); // expect… 20 …static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-n… 22 …void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expecte… 23 …void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expecte… 25 …void hidden_by_argument_conversion(Incomplete n, int m = 0) __attribute__((enable_if(m == 10, "cho… 26 …Incomplete hidden_by_incomplete_return_value(int n = 0) __attribute__((enable_if(n == 10, "chosen … [all …]
|
D | unaddressable-functions.cpp | 5 void check(int *) __attribute__((enable_if(false, ""))); 6 void check(double *) __attribute__((enable_if(true, ""))); 8 static void checkStatic(int *) __attribute__((enable_if(false, ""))); 9 static void checkStatic(double *) __attribute__((enable_if(true, ""))); 18 void check(int *) __attribute__((enable_if(false, ""))); 19 void check(double *) __attribute__((enable_if(true, ""))); 21 static void checkStatic(int *) __attribute__((enable_if(false, ""))); 22 static void checkStatic(double *) __attribute__((enable_if(true, ""))); 33 void foo(int) __attribute__((enable_if(false, ""))); 39 void foo() __attribute__((enable_if(false, ""))); [all …]
|
/external/clang/test/Sema/ |
D | enable_if.c | 10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif… 31 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, in strnlen() 39 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, 41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0), 47 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, 49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0), 71 …__attribute__((enable_if(c <= -1 || c > 255, "'c' must have the value of an unsigned char or EOF")… 104 __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) void f1(int n); // expected-error{{us… 106 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute on… 108 void f(int n) __attribute__((enable_if("chosen when 'n' is zero", n == 0))); // expected-error{{'e… [all …]
|
D | enable_if-ext.c | 11 __attribute__ (( enable_if(1, "") )) 23 __attribute__ (( enable_if(0, "") )) 37 __attribute__ (( enable_if(1, "") )) 43 __attribute__ (( enable_if(0, "") ))
|
/external/clang/test/SemaTemplate/ |
D | overload-candidates.cpp | 47 template<bool, typename = void> struct enable_if {}; struct 48 template<typename T> struct enable_if<true, T> { typedef T type; }; struct 50 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-… argument 54 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct 58 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candida… 64 …typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' … 86 template<bool, typename = void> struct enable_if {}; struct 87 template<typename T> struct enable_if<true, T> { typedef T type; }; struct 99 typename Requires = typename std::enable_if<a_trait<T>::value>::type> argument 113 struct a_pony : std::enable_if<some_trait<T>::value> {}; [all …]
|
/external/clang/test/CodeGen/ |
D | enable_if.c | 6 void foo(int m) __attribute__((overloadable, enable_if(m > 0, ""))); 30 void bar(int m) __attribute__((overloadable, enable_if(m > 0, ""))); 31 void bar(int m) __attribute__((overloadable, enable_if(1, ""))); 53 void baz(int m) __attribute__((overloadable, enable_if(1, ""))); 69 void qux(int m) __attribute__((overloadable, enable_if(1, ""), 70 enable_if(TRUEFACTS, ""))); 71 void qux(int m) __attribute__((overloadable, enable_if(1, ""))); 89 int foo(char *i) __attribute__((enable_if(1, ""), overloadable)); in test5() 91 __attribute__((enable_if(1, ""), overloadable)); in test5()
|
/external/clang/test/CodeGenCXX/ |
D | enable_if.cpp | 6 T test5(T) __attribute__((enable_if(1, "better than non-template"))); 14 void test1(int i) __attribute__((enable_if(i == 1, ""))) {} in test1() 18 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {} in test2() 21 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {} in test3() 26 …virtual void f(int i, int j) __attribute__((enable_if(i == 1, ""))) __attribute__((enable_if(j == …
|
/external/libcxx/include/ |
D | math.h | 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type 336 typename std::enable_if< 343 typename std::enable_if< 352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type 360 typename std::enable_if< 367 typename std::enable_if< 390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type 398 typename std::enable_if<std::is_integral<_A1>::value, int>::type 406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type 414 typename std::enable_if<std::is_integral<_A1>::value, int>::type [all …]
|
D | valarray | 918 typename enable_if 927 typename enable_if 936 typename enable_if 945 typename enable_if 954 typename enable_if 963 typename enable_if 972 typename enable_if 981 typename enable_if 990 typename enable_if 999 typename enable_if [all …]
|
D | queue | 260 typename enable_if<uses_allocator<container_type, 266 typename enable_if<uses_allocator<container_type, 272 typename enable_if<uses_allocator<container_type, 279 typename enable_if<uses_allocator<container_type, 285 typename enable_if<uses_allocator<container_type, 346 class = typename enable_if<!__is_allocator<_Container>::value, nullptr_t>::type 353 class = typename enable_if<!__is_allocator<_Container>::value, nullptr_t>::type, 354 class = typename enable_if< __is_allocator<_Alloc>::value, nullptr_t>::type 410 typename enable_if< 497 typename enable_if<uses_allocator<container_type, [all …]
|
/external/catch2/include/internal/ |
D | catch_approx.h | 35 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 44 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 49 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 55 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 60 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 65 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 70 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 75 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 80 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… 85 …template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>:… [all …]
|
/external/v8/src/base/ |
D | safe_math_impl.h | 43 struct enable_if {}; 46 struct enable_if<true, T> { typedef T type; }; 97 typedef typename enable_if< 104 typedef typename enable_if< 111 typedef typename enable_if< 120 static const typename enable_if<std::numeric_limits<Integer>::is_integer, 144 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 167 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 194 typename enable_if< 206 typename enable_if<std::numeric_limits<T>::is_integer && [all …]
|
/external/libcxx/test/support/ |
D | archetypes.hpp | 57 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 61 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 65 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 69 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 73 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 78 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 134 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 136 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 138 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 140 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> [all …]
|
/external/llvm/include/llvm/ADT/ |
D | BitmaskEnum.h | 75 E, typename std::enable_if<sizeof(E::LLVM_BITMASK_LARGEST_ENUMERATOR) >= 99 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 105 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 111 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 117 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 126 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 133 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 140 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type>
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | BitmaskEnum.h | 75 E, typename std::enable_if<sizeof(E::LLVM_BITMASK_LARGEST_ENUMERATOR) >= 99 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 105 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 111 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 117 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 126 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 133 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 140 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type>
|
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/ |
D | rx-subscriber.hpp | 126 typename std::enable_if< in subscriber() 208 -> typename std::enable_if<detail::is_unsubscribe_function<F>::value, weak_subscription>::type { in add() 235 -> typename std::enable_if< in make_subscriber() 250 -> typename std::enable_if< in make_subscriber() 258 -> typename std::enable_if< in make_subscriber() 268 -> typename std::enable_if< in make_subscriber() 276 -> typename std::enable_if< in make_subscriber() 285 -> typename std::enable_if< in make_subscriber() 294 -> typename std::enable_if< in make_subscriber() 327 -> typename std::enable_if< in make_subscriber() [all …]
|
/external/libchrome/base/numerics/ |
D | clamped_math_impl.h | 25 typename std::enable_if<std::is_integral<T>::value && 36 typename std::enable_if<std::is_integral<T>::value && 44 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr> 50 typename std::enable_if<std::is_integral<T>::value>::type* = nullptr> 66 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr> 77 typename std::enable_if<std::is_integral<T>::value && 103 typename std::enable_if<std::is_integral<T>::value && 130 typename std::enable_if<std::is_integral<T>::value && 154 typename std::enable_if<std::is_integral<T>::value && 174 typename std::enable_if<std::is_integral<T>::value && [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | scalar_analysis.h | 192 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 199 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 205 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 210 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 227 typename std::enable_if<std::is_integral<T>::value, int>::type> 245 typename std::enable_if<std::is_integral<T>::value, int>::type> 259 typename std::enable_if<std::is_integral<T>::value, int>::type> 269 typename std::enable_if<std::is_integral<T>::value, int>::type> 275 typename std::enable_if<std::is_integral<T>::value, int>::type> 282 typename std::enable_if<std::is_integral<T>::value, int>::type> [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | scalar_analysis.h | 192 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 199 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 205 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 210 typename std::enable_if<std::is_integral<T>::value, int>::type = 0> 227 typename std::enable_if<std::is_integral<T>::value, int>::type> 245 typename std::enable_if<std::is_integral<T>::value, int>::type> 259 typename std::enable_if<std::is_integral<T>::value, int>::type> 269 typename std::enable_if<std::is_integral<T>::value, int>::type> 275 typename std::enable_if<std::is_integral<T>::value, int>::type> 282 typename std::enable_if<std::is_integral<T>::value, int>::type> [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | CheckedArithmetic.h | 29 typename std::enable_if<std::is_integral<T>::value && sizeof(T) * 8 <= 64, 48 typename std::enable_if<std::is_signed<T>::value, llvm::Optional<T>>::type 57 typename std::enable_if<std::is_signed<T>::value, llvm::Optional<T>>::type 66 typename std::enable_if<std::is_signed<T>::value, llvm::Optional<T>>::type 77 typename std::enable_if<std::is_unsigned<T>::value, llvm::Optional<T>>::type 86 typename std::enable_if<std::is_unsigned<T>::value, llvm::Optional<T>>::type 95 typename std::enable_if<std::is_unsigned<T>::value, llvm::Optional<T>>::type
|
/external/libchrome/base/ |
D | bits.h | 26 typename = typename std::enable_if<std::is_integral<T>::value>> 59 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) <= 4, 71 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) == 8, 83 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) <= 4, 94 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) == 8, 124 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) <= 8, 137 typename std::enable_if<std::is_unsigned<T>::value && sizeof(T) <= 8,
|
/external/libbrillo/brillo/ |
D | enum_flags.h | 69 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type 76 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type 85 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type 94 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type operator^( 102 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type operator|=( 111 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type operator&=( 120 constexpr typename std::enable_if<enum_details::IsFlagEnum<T>::value, T>::type operator^=(
|
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/ |
D | linq_iterators.hpp | 19 typename std::enable_if< 27 typename std::enable_if< 35 typename std::enable_if< 44 typename std::enable_if< 52 typename std::enable_if< 60 typename std::enable_if< 68 typename std::enable_if<
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | sizeofpack.cpp | 75 struct enable_if { }; struct 77 template<class T> struct enable_if<true, T> { struct 84 void cxx_throw(typename enable_if<(sizeof...(Args) > 0), const char *>::type fmt, Args&&... args) { in cxx_throw() 152 struct enable_if struct 155 struct enable_if<true,_Tp> struct 172 typename enable_if<is_array_of<sizeof...(Args), size_t, Args...>::value,
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | serialization_util.h | 36 typename std::enable_if<HasIsNullMethod<Traits>::value>::type* = nullptr> 44 typename std::enable_if<!HasIsNullMethod<Traits>::value>::type* = nullptr> 63 typename std::enable_if<HasSetToNullMethod<Traits>::value>::type* = nullptr> 71 typename std::enable_if<!HasSetToNullMethod<Traits>::value>::type* = 152 typename std::enable_if< 162 typename std::enable_if< 183 typename std::enable_if< 193 typename std::enable_if<
|