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

/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/
H A Dsfinae-1.cpp26 struct enable_if { struct in namespace:instantiation_order1
31 struct enable_if<false, T> { }; struct in namespace:instantiation_order1
34 typename enable_if<sizeof(T) == 17>::type
/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
[all...]
/external/llvm/include/llvm/Support/
H A Dtype_traits.h181 // enable_if - Enable/disable a template based on a metafunction
183 struct enable_if : public enable_if_c<Cond::value, T> { }; struct in namespace:llvm
/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) {
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dexample-bind.cpp251 // enable_if helper
253 struct enable_if;
256 struct enable_if<true, T> { struct
261 struct enable_if<false, T> { }; struct
269 typename enable_if<(I >= 0 && I < tuple_size<tuple<Values...> >::value)>::type> {
293 inline typename enable_if<is_bind_expression<Bound>::value,
311 inline typename enable_if<(!is_bind_expression<Bound>::value

Completed in 872 milliseconds