Home
last modified time | relevance | path

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

123456

/external/clang/test/SemaCXX/
Denable_if.cpp11 …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 …]
Dalias-template.cpp147 template<bool> struct enable_if; // expected-note 2{{here}}
148 template<> struct enable_if<true> { using type = void; }; struct
152 …template<typename T> using EnableIf = typename enable_if<T::value>::type; // expected-error {{unde…
153 …template<typename T> using DisableIf = typename enable_if<!T::value>::type; // expected-error {{un…
/external/clang/test/Sema/
Denable_if.c10 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 …]
/external/clang/test/SemaTemplate/
Doverload-candidates.cpp47 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/CodeGenCXX/
Denable_if.cpp6 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 == …
Dmangle-exprs.cpp36 struct enable_if { typedef T type; }; argument
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_()
60 void reinterpret_(typename enable_if<O <= sizeof(reinterpret_cast<T *>(0))>::type * = 0) { in reinterpret_()
64 void const_(typename enable_if<0 <= sizeof(const_cast<T *>(p))>::type * = 0) { in const_()
68 void dynamic_(typename enable_if<0 <= sizeof(dynamic_cast<T *>(p))>::type * = 0) { in dynamic_()
/external/clang/test/CodeGen/
Denable_if.c6 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, "")));
/external/libweave/third_party/chromium/base/numerics/
Dsafe_math_impl.h67 typedef typename std::enable_if<
74 typedef typename std::enable_if<
81 typedef typename std::enable_if<
90 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer,
134 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
157 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
184 typename std::enable_if<std::numeric_limits<T>::is_integer &&
196 typename std::enable_if<std::numeric_limits<T>::is_integer &&
226 typename std::enable_if<std::numeric_limits<T>::is_integer &&
242 typename std::enable_if<std::numeric_limits<T>::is_integer,
[all …]
/external/libchrome/base/numerics/
Dsafe_math_impl.h68 typedef typename std::enable_if<
75 typedef typename std::enable_if<
82 typedef typename std::enable_if<
91 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer,
135 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
158 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
185 typename std::enable_if<std::numeric_limits<T>::is_integer &&
197 typename std::enable_if<std::numeric_limits<T>::is_integer &&
227 typename std::enable_if<std::numeric_limits<T>::is_integer &&
243 typename std::enable_if<std::numeric_limits<T>::is_integer,
[all …]
/external/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/libcxx/include/
D__functional_base_0321 typename enable_if
33 typename enable_if
45 typename enable_if
57 typename enable_if
69 typename enable_if
81 typename enable_if
93 typename enable_if
105 typename enable_if
117 typename enable_if
129 typename enable_if
[all …]
Dvalarray885 typename enable_if
893 typename enable_if
901 typename enable_if
909 typename enable_if
917 typename enable_if
925 typename enable_if
933 typename enable_if
941 typename enable_if
949 typename enable_if
957 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 …]
/external/pdfium/third_party/base/numerics/
Dsafe_math_impl.h68 typedef typename std::enable_if<
75 typedef typename std::enable_if<
82 typedef typename std::enable_if<
91 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer,
116 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
139 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type
166 typename std::enable_if<std::numeric_limits<T>::is_integer &&
178 typename std::enable_if<std::numeric_limits<T>::is_integer &&
208 typename std::enable_if<std::numeric_limits<T>::is_integer &&
224 typename std::enable_if<std::numeric_limits<T>::is_integer,
[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/test/std/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()
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()
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()
/external/llvm/include/llvm/Support/
DErrorOr.h27 typename std::enable_if< std::is_constructible<T, V>::value
34 typename std::enable_if< !std::is_constructible<T, V>::value
99 typename std::enable_if<std::is_error_code_enum<E>::value ||
121 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
129 typename std::enable_if<
141 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
151 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * =
290 typename std::enable_if<std::is_error_code_enum<E>::value ||
DYAMLTraits.h560 typename std::enable_if<has_SequenceTraits<T>::value,void>::type
574 typename std::enable_if<!has_SequenceTraits<T>::value,void>::type
637 typename std::enable_if<has_ScalarEnumerationTraits<T>::value,void>::type
645 typename std::enable_if<has_ScalarBitSetTraits<T>::value,void>::type
657 typename std::enable_if<has_ScalarTraits<T>::value,void>::type
677 typename std::enable_if<has_BlockScalarTraits<T>::value, void>::type
696 typename std::enable_if<validatedMappingTraits<T>::value, void>::type
722 typename std::enable_if<unvalidatedMappingTraits<T>::value, void>::type
736 typename std::enable_if<missingTraits<T>::value, void>::type
742 typename std::enable_if<has_SequenceTraits<T>::value,void>::type
[all …]
/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/libbrillo/brillo/
Dany_internal_impl.h36 inline typename std::enable_if<IsConvertible<From, To>::value, bool>::type
42 inline typename std::enable_if<!IsConvertible<From, To>::value, bool>::type
126 inline typename std::enable_if<!IsEqualityComparable<T>::value, bool>::type
133 inline typename std::enable_if<IsEqualityComparable<T>::value, bool>::type
183 static typename std::enable_if<dbus_utils::IsTypeSupported<U>::value>::type
188 static typename std::enable_if<!dbus_utils::IsTypeSupported<U>::value>::type
/external/libcxx/test/std/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/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dmove_convert11.fail.cpp83 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
89 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0);
93 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
Dmove_convert08.fail.cpp83 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()
89 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0);
93 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0) in Deleter()

123456