HomeSort by relevance Sort by last modified time
    Searched refs:enable_if (Results 1 - 25 of 231) sorted by null

1 2 3 4 5 6 7 8 910

  /external/clang/test/CodeGenCXX/
enable_if.cpp 2 // Test itanium mangling for attribute enable_if
5 void test1(int i) __attribute__((enable_if(i == 1, ""))) {}
9 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {}
12 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {}
17 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/
enable_if.fail.cpp 12 // enable_if
18 typedef std::enable_if<false>::type A;
enable_if.pass.cpp 12 // enable_if
18 static_assert((std::is_same<std::enable_if<true>::type, void>::value), "");
19 static_assert((std::is_same<std::enable_if<true, int>::type, int>::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.trans/meta.trans.other/
enable_if.fail.cpp 12 // enable_if
18 typedef std::enable_if<false>::type A;
enable_if.pass.cpp 12 // enable_if
18 static_assert((std::is_same<std::enable_if<true>::type, void>::value), "");
19 static_assert((std::is_same<std::enable_if<true, int>::type, int>::value), "");
  /external/clang/test/SemaCXX/
enable_if.cpp 9 X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate disabled: chosen when 'b' is true}}
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{{member declaration nearly matches}} expected-note{{candidate disabled: chosen when 'n' is one}}
14 static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note2{{candidate disabled: chosen when 'n' is zero}}
16 void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
17 void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
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; } // expected-note{{conversion candidate of type 'int (*)(int)'}} // FIXME: the message is not displayed
25 void X::f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) // expected-note{{member declaration nearly matches}} expect (…)
    [all...]
  /external/clang/test/Sema/
enable_if.c 8 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}}
29 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
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{{use of undeclared identifier 'n'}}
83 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute only applies to functions}
    [all...]
  /external/clang/test/SemaTemplate/
overload-candidates.cpp 45 template<bool, typename = void> struct enable_if {}; struct in namespace:boost
46 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:boost
48 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]}}
52 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct in namespace:llvm
56 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]}}
62 typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' in 'boost::enable_if<false, int>'; 'enable_if' cannot be used to disable this declaration}
84 template<bool, typename = void> struct enable_if {}; struct in namespace:std
85 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:std
    [all...]
  /external/pdfium/third_party/base/
template_util.h 27 struct enable_if {}; struct in namespace:pdfium::base
30 struct enable_if<true, T> { typedef T type; }; struct in namespace:pdfium::base
  /external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/
sfinae-1.cpp 27 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
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
utility.hpp 15 #include <boost/utility/enable_if.hpp>
  /external/libcxx/test/std/numerics/complex.number/cmplx.over/
arg.pass.cpp 24 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)
norm.pass.cpp 24 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)
conj.pass.cpp 26 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 &&
proj.pass.cpp 26 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 &&
pow.pass.cpp 32 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)
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/cmplx.over/
arg.pass.cpp 24 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)
norm.pass.cpp 24 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)
conj.pass.cpp 26 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 &&
proj.pass.cpp 26 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 &&
pow.pass.cpp 32 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/clang/test/CXX/temp/temp.decls/temp.variadic/
sizeofpack.cpp 75 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/v8/src/base/
safe_math_impl.h 43 struct enable_if {}; struct in namespace:v8::base::internal
46 struct enable_if<true, T> { typedef T type; }; struct in namespace:v8::base::internal
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,
140 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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<
    [all...]
  /external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
pointer_deleter01.pass.cpp 69 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0)
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)
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
pointer_deleter01.pass.cpp 69 typename std::enable_if<!std::is_same<U, T>::value>::type* = 0)
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)

Completed in 680 milliseconds

1 2 3 4 5 6 7 8 910