Searched defs:enable_if (Results 1 - 13 of 13) sorted by relevance

/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/chromium_org/base/numerics/
H A Dsafe_math.h169 typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type =
177 typename enable_if<!is_same<Src, T>::value, int>::type = 0) {
167 cast( Src u, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
175 cast( const CheckedNumeric<Src>& u, typename enable_if<!is_same<Src, T>::value, int>::type = 0) argument
H A Dsafe_numerics_unittest.cc27 using base::enable_if;
61 typename enable_if<
117 typename enable_if<
150 typename enable_if<numeric_limits<Dst>::is_iec559, int>::type = 0) {
147 TestSpecializedArithmetic( const char* dst, int line, typename enable_if<numeric_limits<Dst>::is_iec559, int>::type = 0) argument
H A 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,
110 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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<st
218 CheckedDiv( T x, T y, RangeConstraint* validity, typename enable_if<std::numeric_limits<T>::is_integer, int>::type = 0) argument
377 CheckedNumericState( Src value, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
401 CheckedNumericState( Src value, RangeConstraint validity, typename enable_if<std::numeric_limits<Src>::is_integer, int>::type = 0) argument
428 CheckedNumericState( Src value, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
[all...]
/external/chromium_org/base/
H A Dtemplate_util.h121 struct enable_if {}; struct in namespace:base
124 struct enable_if<true, T> { typedef T type; }; struct in namespace:base
/external/chromium_org/v8/src/base/
H A Dsafe_math.h173 typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type =
181 typename enable_if<!is_same<Src, T>::value, int>::type = 0) {
171 cast( Src u, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
179 cast( const CheckedNumeric<Src>& u, typename enable_if<!is_same<Src, T>::value, int>::type = 0) argument
H A Dsafe_math_impl.h43 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<
249 CheckedDiv( T x, T y, RangeConstraint* validity, typename enable_if<std::numeric_limits<T>::is_integer, int>::type = 0) argument
408 CheckedNumericState( Src value, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
432 CheckedNumericState( Src value, RangeConstraint validity, typename enable_if<std::numeric_limits<Src>::is_integer, int>::type = 0) argument
456 CheckedNumericState( Src value, typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type = 0) argument
[all...]
/external/clang/test/SemaTemplate/
H A Doverload-candidates.cpp45 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<fals
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...]
H A Dconstexpr-instantiate.cpp168 template<bool, typename> struct enable_if {}; struct in namespace:Unevaluated::PR13423
169 template<typename T> struct enable_if<true, T> { using type = T; }; struct in namespace:Unevaluated::PR13423
176 static typename enable_if<f<U>(), void>::type g() {} // expected-note {{disabled by 'enable_if'}}
/external/eigen/Eigen/src/Core/util/
H A DMeta.h86 template<bool Condition, typename T> struct enable_if;
88 template<typename T> struct enable_if<true,T> struct in namespace:Eigen::internal
/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,
H A Dexample-bind.cpp252 // enable_if helper
254 struct enable_if;
257 struct enable_if<true, T> { struct
262 struct enable_if<false, T> { }; struct
270 typename enable_if<(I >= 0 && I < tuple_size<tuple<Values...> >::value)>::type> {
294 inline typename enable_if<is_bind_expression<Bound>::value,
312 inline typename enable_if<(!is_bind_expression<Bound>::value
/external/clang/test/CodeGenCXX/
H A 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) {
48 void cstyle(typename enable_if< O <= (unsigned)4 >::type* = 0) {
52 void functional(typename enable_if< O <= unsigned(4) >::type* = 0) {
56 void static_(typename enable_if< O <= static_cast<unsigned>(4) >::type* = 0) {

Completed in 1139 milliseconds