Searched refs:enable_if (Results 1 - 25 of 213) sorted by relevance

123456789

/external/clang/test/CodeGenCXX/
H A Denable_if.cpp6 T test5(T) __attribute__((enable_if(1, "better than non-template")));
11 // Test itanium mangling for attribute enable_if
14 void test1(int i) __attribute__((enable_if(i == 1, ""))) {}
18 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {}
21 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {}
26 virtual void f(int i, int j) __attribute__((enable_if(i == 1, ""))) __attribute__((enable_if(j == 2, "")));
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Denable_if.fail.cpp12 // enable_if
18 typedef std::enable_if<false>::type A;
H A Denable_if.pass.cpp12 // enable_if
20 static_assert((std::is_same<std::enable_if<true>::type, void>::value), "");
21 static_assert((std::is_same<std::enable_if<true, int>::type, int>::value), "");
/external/clang/test/Sema/
H A Denable_if-ext.c11 __attribute__ (( enable_if(1, "") ))
13 // expected-warning@-2 {{'enable_if' is a clang extension}}
19 // expected-warning@-2 {{'enable_if' is a clang extension}}
23 __attribute__ (( enable_if(0, "") ))
25 // expected-warning@-2 {{'enable_if' is a clang extension}}
31 // expected-warning@-2 {{'enable_if' is a clang extension}}
37 __attribute__ (( enable_if(1, "") ))
43 __attribute__ (( enable_if(0, "") ))
H A Denable_if.c10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specify mode when using O_CREAT"))) __attribute__((overloadable)); // expected-note{{candidate disabled: must specify mode when using O_CREAT}}
31 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
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{{use of undeclared identifier 'n'}}
106 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribut
[all...]
/external/clang/test/SemaCXX/
H A Dunaddressable-functions.cpp5 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(fals
[all...]
H A Denable_if.cpp11 X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate disabled: chosen when 'b' is true}}
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{{member declaration nearly matches}} expected-note 2{{candidate disabled: chosen when 'n' is one}}
16 void g(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note{{candidate disabled: chosen when 'n' is zero}}
18 void h(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero"))); // expected-note{{candidate disabled: chosen when 'm' is zero}}
20 static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note2{{candidate disabled: chosen when 'n' is zero}}
22 void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
23 void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
25 void hidden_by_argument_conversion(Incomplete n, int m = 0) __attribute__((enable_if(m == 10, "chosen when 'm' is ten")));
26 Incomplete hidden_by_incomplete_return_value(int n = 0) __attribute__((enable_if(
[all...]
/external/clang/test/CodeGen/
H A 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, "")));
84 // There was a bug where, when enable_if was present, overload resolution
89 int foo(char *i) __attribute__((enable_if(1, ""), overloadable));
91 __attribute__((enable_if(
[all...]
H A Doverloadable.c36 void addrof_many(int *a) __attribute__((overloadable, enable_if(0, "")));
40 void addrof_single(int *a) __attribute__((overloadable, enable_if(0, "")));
41 void addrof_single(char *a) __attribute__((overloadable, enable_if(0, "")));
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/
H A Dsfinae-1.cpp27 struct enable_if { struct in namespace:instantiation_order1
32 struct enable_if<false, T> { }; struct in namespace:instantiation_order1
35 typename enable_if<sizeof(T) == 17>::type
/external/clang/test/SemaTemplate/
H A Doverload-candidates.cpp47 template<bool, typename = void> struct enable_if {}; struct in namespace:boost
48 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:boost
50 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
54 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct in namespace:llvm
58 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
64 typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' in 'boost::enable_if<fals
86 template<bool, typename = void> struct enable_if {}; struct in namespace:std
87 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:std
[all...]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorMacros.h17 * typename std::enable_if< isBanana<T>::value , int >::type = 0
44 typename internal::enable_if< ( __condition__ ) , int >::type = 0
/external/parameter-framework/asio/include/asio/detail/
H A Dtype_traits.hpp22 using std::enable_if;
/external/parameter-framework/asio-1.10.6/include/asio/detail/
H A Dtype_traits.hpp22 using std::enable_if;
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dsizeofpack.cpp75 struct enable_if { }; struct in namespace:pr13272
77 template<class T> struct enable_if<true, T> { struct in namespace:pr13272
84 void cxx_throw(typename enable_if<(sizeof...(Args) > 0), const char *>::type fmt, Args&&... args) {
152 struct enable_if struct in namespace:pr15112
155 struct enable_if<true,_Tp> struct in namespace:pr15112
172 typename enable_if<is_array_of<sizeof...(Args), size_t, Args...>::value,
/external/libcxx/test/std/numerics/complex.number/cmplx.over/
H A Darg.pass.cpp24 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0)
32 test(T x, typename std::enable_if<!std::is_integral<T>::value>::type* = 0)
H A Dnorm.pass.cpp24 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0)
32 test(T x, typename std::enable_if<!std::is_integral<T>::value>::type* = 0)
H A Dconj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0)
34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0)
42 test(T x, typename std::enable_if<!std::is_integral<T>::value &&
H A Dproj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0)
34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0)
42 test(T x, typename std::enable_if<!std::is_integral<T>::value &&
H A 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::is_integral<U>::value>::type* = 0)
75 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std::is_integral<U>::value>::type* = 0)
/external/llvm/include/llvm/ADT/
H A DBitmaskEnum.h75 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/libbrillo/brillo/
H A Denum_flags.h69 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/libcxx/test/support/
H A Darchetypes.hpp57 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<Dumm
[all...]
/external/libcxx/include/
H A Dmath.h336 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
344 typename std::enable_if<
351 typename std::enable_if<
360 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
368 typename std::enable_if<
375 typename std::enable_if<
398 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
406 typename std::enable_if<std::is_integral<_A1>::value, int>::type
414 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
422 typename std::enable_if<st
[all...]
/external/libmojo/mojo/public/cpp/bindings/lib/
H A Dserialization_forward.h43 typename std::enable_if<
55 typename std::enable_if<
67 typename std::enable_if<
78 typename std::enable_if<
90 typename std::enable_if<
107 typename std::enable_if<

Completed in 494 milliseconds

123456789