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

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGenCXX/
enable_if.cpp 6 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/clang/test/Sema/
enable_if.c 10 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' attribute only applies to functions}
    [all...]
  /external/clang/test/SemaCXX/
enable_if.cpp 11 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(n == 10, "chosen when 'n' is ten"))); // expected-note{{'hidden_by_incomplete_return_value' declar (…)
    [all...]
  /external/clang/test/SemaTemplate/
overload-candidates.cpp 47 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<false, int>'; 'enable_if' cannot be used to disable this declaration}
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/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
  /external/libcxx/include/
__functional_base_03 21 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...]
valarray 885 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...]
  /external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
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), "");
enable_if.fail.cpp 12 // enable_if
18 typedef std::enable_if<false>::type A;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.trans/meta.trans.other/
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/tests/device/issue42891-boost-1_52/jni/boost/boost/iterator/detail/
enable_if.hpp 16 // Boost iterators uses its own enable_if cause we need
41 // enable_if falls back to always enabled. See comments
68 struct enable_if struct in namespace:boost::iterators
  /external/clang/test/CodeGen/
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, "")));
  /external/libchrome/base/numerics/
safe_math_impl.h 68 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,
131 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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 &
    [all...]
  /external/libweave/third_party/chromium/base/numerics/
safe_math_impl.h 67 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,
130 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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 &
    [all...]
  /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...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
cmath 328 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...]
__functional_base_03 418 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...]
valarray 883 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...]
  /prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/
cmath 328 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...]
__functional_base_03 418 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...]
valarray 883 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...]
  /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/parameter-framework/asio-1.10.6/include/asio/detail/
type_traits.hpp 22 using std::enable_if;
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/utility/
enable_if.hpp 1 // Boost enable_if library
19 // Even the definition of enable_if causes problems on some compilers,
36 struct enable_if : public enable_if_c<Cond::value, T> {}; struct in namespace:boost
100 struct enable_if : enable_if_does_not_work_on_this_compiler<T>
  /external/pdfium/third_party/base/numerics/
safe_math_impl.h 68 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,
112 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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 &
    [all...]

Completed in 1000 milliseconds

1 2 3 4 5 6 7 8 91011>>