Home
last modified time | relevance | path

Searched refs:enable_if (Results 1 – 25 of 109) sorted by relevance

12345

/external/clang/test/SemaCXX/
Denable_if.cpp9 …X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate d…
11 void f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero")));
12 …void f(int n) __attribute__((enable_if(n == 1, "chosen when 'n' is one"))); // expected-note{{mem…
14 …static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-n…
16 …void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expecte…
17 …void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expecte…
19 operator long() __attribute__((enable_if(true, "chosen on your platform")));
20 operator int() __attribute__((enable_if(false, "chosen on other platform")));
22 …operator fp() __attribute__((enable_if(false, "never enabled"))) { return surrogate; } // expecte… in operator fp()
25 void X::f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) // expected-note{{m… in f()
[all …]
Dalias-template.cpp149 template<bool> struct enable_if; // expected-note 2{{here}}
150 template<> struct enable_if<true> { using type = void; }; struct
154 …template<typename T> using EnableIf = typename enable_if<T::value>::type; // expected-error {{unde…
155 …template<typename T> using DisableIf = typename enable_if<!T::value>::type; // expected-error {{un…
/external/clang/test/Sema/
Denable_if.c8 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif…
29 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, in strnlen()
37 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
39 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
45 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
47 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
69 …__attribute__((enable_if(c <= -1 || c > 255, "'c' must have the value of an unsigned char or EOF")…
81 __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) void f1(int n); // expected-error{{us…
83 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute on…
85 void f(int n) __attribute__((enable_if("chosen when 'n' is zero", n == 0))); // expected-error{{'e…
[all …]
/external/clang/test/SemaTemplate/
Doverload-candidates.cpp45 template<bool, typename = void> struct enable_if {}; struct
46 template<typename T> struct enable_if<true, T> { typedef T type; }; struct
48 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-… argument
52 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct
56 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candida…
62 …typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' …
84 template<bool, typename = void> struct enable_if {}; struct
85 template<typename T> struct enable_if<true, T> { typedef T type; }; struct
97 …typename Requires = typename std::enable_if<a_trait<T>::value>::type> // expected-warning {{C++11 … argument
108 struct a_pony : std::enable_if<some_trait<T>::value> {};
[all …]
/external/clang/test/CodeGenCXX/
Denable_if.cpp5 void test1(int i) __attribute__((enable_if(i == 1, ""))) {} in test1()
9 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {} in test2()
12 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {} in test3()
17 …virtual void f(int i, int j) __attribute__((enable_if(i == 1, ""))) __attribute__((enable_if(j == …
Dmangle-exprs.cpp36 struct enable_if { typedef T type; }; struct
39 struct enable_if< false, T > {}; struct
44 void implicit(typename enable_if< O <= 4 >::type* = 0) { in implicit()
48 void cstyle(typename enable_if< O <= (unsigned)4 >::type* = 0) { in cstyle()
52 void functional(typename enable_if< O <= unsigned(4) >::type* = 0) { in functional()
56 void static_(typename enable_if< O <= static_cast<unsigned>(4) >::type* = 0) { in static_()
/external/chromium_org/v8/src/base/
Dsafe_math_impl.h43 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/chromium_org/base/numerics/
Dsafe_math_impl.h67 typedef typename enable_if<
74 typedef typename enable_if<
81 typedef typename enable_if<
90 static const typename enable_if<std::numeric_limits<Integer>::is_integer,
114 typename enable_if<std::numeric_limits<T>::is_integer, T>::type
137 typename enable_if<std::numeric_limits<T>::is_integer, T>::type
164 typename enable_if<
176 typename enable_if<std::numeric_limits<T>::is_integer&& std::numeric_limits<
205 typename enable_if<std::numeric_limits<T>::is_integer &&
222 typename enable_if<std::numeric_limits<T>::is_integer, int>::type = 0) {
[all …]
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dsizeofpack.cpp75 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/libcxx/include/
Dvalarray883 typename enable_if
891 typename enable_if
899 typename enable_if
907 typename enable_if
915 typename enable_if
923 typename enable_if
931 typename enable_if
939 typename enable_if
947 typename enable_if
955 typename enable_if
[all …]
Dcmath328 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
352 typename std::enable_if<std::is_arithmetic<_A1>::value, int>::type
376 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
400 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
424 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
448 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
472 typename std::enable_if
502 typename std::enable_if
532 typename std::enable_if
562 typename std::enable_if
[all …]
D__functional_base_03418 typename enable_if
430 typename enable_if
442 typename enable_if
454 typename enable_if
466 typename enable_if
478 typename enable_if
490 typename enable_if
502 typename enable_if
514 typename enable_if
526 typename enable_if
[all …]
Dexception193 throw_with_nested(_Tp&& __t, typename enable_if<
198 throw_with_nested (_Tp& __t, typename enable_if<
212 throw_with_nested(_Tp&& __t, typename enable_if<
217 throw_with_nested (_Tp& __t, typename enable_if<
230 rethrow_if_nested(const _Ep& __e, typename enable_if<
242 rethrow_if_nested(const _Ep&, typename enable_if<
Dqueue240 typename enable_if<uses_allocator<container_type,
246 typename enable_if<uses_allocator<container_type,
252 typename enable_if<uses_allocator<container_type,
259 typename enable_if<uses_allocator<container_type,
265 typename enable_if<uses_allocator<container_type,
450 typename enable_if<uses_allocator<container_type,
454 typename enable_if<uses_allocator<container_type,
459 typename enable_if<uses_allocator<container_type,
463 typename enable_if<uses_allocator<container_type,
469 typename enable_if<uses_allocator<container_type,
[all …]
/external/libcxx/test/numerics/complex.number/cmplx.over/
Dpow.pass.cpp32 promote(T, typename std::enable_if<std::is_integral<T>::value>::type* = 0);
67 test(typename std::enable_if<std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std::… in test()
75 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std:… in test()
Dproj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0) in test()
42 test(T x, typename std::enable_if<!std::is_integral<T>::value && in test()
Dconj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0) in test()
42 test(T x, typename std::enable_if<!std::is_integral<T>::value && in test()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/
Dsfinae-1.cpp27 struct enable_if { struct
32 struct enable_if<false, T> { }; struct
35 typename enable_if<sizeof(T) == 17>::type
/external/llvm/include/llvm/ADT/
DSTLExtras.h392 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
406 typename std::enable_if<std::is_array<T>::value && std::extent<T>::value == 0,
414 typename std::enable_if<std::extent<T>::value != 0>::type
420 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
426 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
432 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
439 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
447 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
455 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
465 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
[all …]
/external/libcxx/test/utilities/meta/meta.trans/meta.trans.other/
Denable_if.pass.cpp18 static_assert((std::is_same<std::enable_if<true>::type, void>::value), ""); in main()
19 static_assert((std::is_same<std::enable_if<true, int>::type, int>::value), ""); in main()
/external/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dpointer_deleter01.pass.cpp69 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
75 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0);
79 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
Dmove_convert08.fail.cpp82 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
88 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0);
92 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
Dmove_convert11.fail.cpp82 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
88 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0);
92 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
/external/llvm/include/llvm/Support/
DMathExtras.h47 typename std::enable_if<std::numeric_limits<T>::is_integer &&
74 typename std::enable_if<std::numeric_limits<T>::is_integer &&
118 typename std::enable_if<std::numeric_limits<T>::is_integer &&
140 typename std::enable_if<std::numeric_limits<T>::is_integer &&
184 typename std::enable_if<std::numeric_limits<T>::is_integer &&
195 typename std::enable_if<std::numeric_limits<T>::is_integer &&
207 typename std::enable_if<std::numeric_limits<T>::is_integer &&
221 typename std::enable_if<std::numeric_limits<T>::is_integer &&
DYAMLTraits.h512 typename std::enable_if<has_SequenceTraits<T>::value,void>::type
526 typename std::enable_if<!has_SequenceTraits<T>::value,void>::type
591 typename std::enable_if<has_ScalarEnumerationTraits<T>::value,void>::type
599 typename std::enable_if<has_ScalarBitSetTraits<T>::value,void>::type
612 typename std::enable_if<has_ScalarTraits<T>::value,void>::type
633 typename std::enable_if<validatedMappingTraits<T>::value, void>::type
653 typename std::enable_if<unvalidatedMappingTraits<T>::value, void>::type
661 typename std::enable_if<missingTraits<T>::value, void>::type
667 typename std::enable_if<has_SequenceTraits<T>::value,void>::type
1130 typename std::enable_if<has_DocumentListTraits<T>::value, Input &>::type
[all …]

12345