/external/clang/www/ |
libstdc++4.6-clang11.patch | 7 - { typedef decltype(true ? declval<_Tp>() : declval<_Up>()) type; }; 8 + { typedef typename decay<decltype(true ? declval<_Tp>() : declval<_Up>())>::type type; };
|
libstdc++4.7-clang11.patch | 9 - { typedef decltype(true ? declval<_Tp>() : declval<_Up>()) type; }; 10 + { typedef typename decay<decltype(true ? declval<_Tp>() : declval<_Up>())>::type type; };
|
/external/clang/test/CXX/special/class.copy/ |
p15-0x.cpp | 27 template<typename T> T &&declval() noexcept; 39 static_assert(noexcept(declval<X>()), "noexcept isn't working at all"); 40 static_assert(noexcept(X(declval<X&>())), "copy constructor can't throw"); 41 static_assert(noexcept(X(declval<X>())), "move constructor can't throw");
|
/external/clang/test/SemaCXX/ |
libstdcxx_common_type_hack.cpp | 12 template<typename T> T &&declval(); 18 typedef decltype(true ? declval<A>() : declval<B>()) type; 31 using U = decltype(true ? std::declval<int>() : std::declval<int>()); // expected-error {{different types}}
|
dependent-noexcept-unevaluated.cpp | 5 declval() noexcept; 26 void swap(array& a) noexcept(noexcept(::swap(declval<T&>(), declval<T&>())));
|
cxx0x-defaulted-functions.cpp | 64 template<typename T> T &&declval(); 66 pair(const pair&) noexcept(noexcept(T(declval<T>()))); 85 (void)noexcept(B(declval<B>())); 108 void test1(decltype(declval<DelayImplicit>() = DelayImplicit(DelayImplicit()))); 109 void test2(decltype(declval<DelayImplicit>() = declval<const DelayImplicit>())); 110 void test3(decltype(DelayImplicit(declval<const DelayImplicit>())));
|
implicit-member-functions.cpp | 87 template<typename T> T &&declval(); 91 typename = decltype(T(declval<const V&>())), 92 typename = decltype(U(declval<const W&>()))>
|
/external/libcxx/test/std/utilities/function.objects/func.require/ |
invoke.pass.cpp | 40 static_assert(sizeof(std::__invoke(&Type::f1, std::declval<Type >())) == 1, ""); 41 static_assert(sizeof(std::__invoke(&Type::f2, std::declval<Type const >())) == 2, ""); 43 static_assert(sizeof(std::__invoke(&Type::g1, std::declval<Type &>())) == 1, ""); 44 static_assert(sizeof(std::__invoke(&Type::g2, std::declval<Type const &>())) == 2, ""); 46 static_assert(sizeof(std::__invoke(&Type::g3, std::declval<Type &&>())) == 3, ""); 47 static_assert(sizeof(std::__invoke(&Type::g4, std::declval<Type const&&>())) == 4, "");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.require/ |
invoke.pass.cpp | 40 static_assert(sizeof(std::__invoke(&Type::f1, std::declval<Type >())) == 1, ""); 41 static_assert(sizeof(std::__invoke(&Type::f2, std::declval<Type const >())) == 2, ""); 43 static_assert(sizeof(std::__invoke(&Type::g1, std::declval<Type &>())) == 1, ""); 44 static_assert(sizeof(std::__invoke(&Type::g2, std::declval<Type const &>())) == 2, ""); 46 static_assert(sizeof(std::__invoke(&Type::g3, std::declval<Type &&>())) == 3, ""); 47 static_assert(sizeof(std::__invoke(&Type::g4, std::declval<Type const&&>())) == 4, "");
|
/external/libcxx/test/std/utilities/utility/declval/ |
declval.pass.cpp | 12 // template <class T> typename add_rvalue_reference<T>::type declval() noexcept; 28 static_assert((std::is_same<decltype(std::declval<A>()), A&&>::value), ""); 30 static_assert((std::is_same<decltype(std::declval<A>()), A&>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/declval/ |
declval.pass.cpp | 12 // template <class T> typename add_rvalue_reference<T>::type declval() noexcept; 26 static_assert((std::is_same<decltype(std::declval<A>()), A&&>::value), ""); 28 static_assert((std::is_same<decltype(std::declval<A>()), A>::value), "");
|
/external/libcxx/include/ |
__functional_base_03 | 431 typedef typename __apply_cv<decltype(*_VSTD::declval<_T1&>()), _Rp>::type type; 449 decltype(_VSTD::declval<_Fp&>()()) 457 decltype(_VSTD::declval<_Fp&>()(_VSTD::declval<_A0&>())) 465 decltype(_VSTD::declval<_Fp&>()(_VSTD::declval<_A0&>(), _VSTD::declval<_A1&>())) 473 decltype(_VSTD::declval<_Fp&>()(_VSTD::declval<_A0&>(), _VSTD::declval<_A1&>(), _VSTD::declval<_A2&>()) [all...] |
/external/clang/test/CXX/except/except.spec/ |
canonical.cpp | 9 template <class _Tp> _Tp&& declval() noexcept; 14 static const bool value = noexcept(_Tp(declval<_Args>()...));
|
/frameworks/base/tools/aapt2/util/ |
TypeTraits.h | 28 static constexpr decltype(std::declval<V>() op std::declval<W>(), bool()) test(int) { \
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
__functional_base_03 | 845 typedef typename __apply_cv<decltype(*_VSTD::declval<_T1>()), _Rp>::type type; 876 decltype(declval<_Fp>()()) 884 decltype(declval<_Fp>()(declval<_A0&>())) 892 decltype(declval<_Fp>()(declval<_A0&>(), declval<_A1&>())) 900 decltype(declval<_Fp>()(declval<_A0&>(), declval<_A1&>(), declval<_A2&>()) [all...] |
/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/ |
__functional_base_03 | 845 typedef typename __apply_cv<decltype(*_VSTD::declval<_T1>()), _Rp>::type type; 876 decltype(declval<_Fp>()()) 884 decltype(declval<_Fp>()(declval<_A0&>())) 892 decltype(declval<_Fp>()(declval<_A0&>(), declval<_A1&>())) 900 decltype(declval<_Fp>()(declval<_A0&>(), declval<_A1&>(), declval<_A2&>()) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/bits/ |
alloc_traits.h | 211 typename = decltype(std::declval<_Alloc3*>()->allocate( 212 std::declval<size_type>(), 213 std::declval<const_void_pointer>()))> 239 typename = decltype(std::declval<_Alloc2*>()->construct( 240 std::declval<_Tp*>(), std::declval<_Args>()...))> 267 typename = decltype(std::declval<_Alloc2*>()->destroy( 268 std::declval<_Tp*>()))> 292 typename = decltype(std::declval<_Alloc3*>()->max_size())> 318 = decltype(std::declval<_Alloc3*>( [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/bits/ |
alloc_traits.h | 211 typename = decltype(std::declval<_Alloc3*>()->allocate( 212 std::declval<size_type>(), 213 std::declval<const_void_pointer>()))> 239 typename = decltype(std::declval<_Alloc2*>()->construct( 240 std::declval<_Tp*>(), std::declval<_Args>()...))> 267 typename = decltype(std::declval<_Alloc2*>()->destroy( 268 std::declval<_Tp*>()))> 292 typename = decltype(std::declval<_Alloc3*>()->max_size())> 318 = decltype(std::declval<_Alloc3*>( [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/bits/ |
alloc_traits.h | 211 typename = decltype(std::declval<_Alloc3*>()->allocate( 212 std::declval<size_type>(), 213 std::declval<const_void_pointer>()))> 239 typename = decltype(std::declval<_Alloc2*>()->construct( 240 std::declval<_Tp*>(), std::declval<_Args>()...))> 267 typename = decltype(std::declval<_Alloc2*>()->destroy( 268 std::declval<_Tp*>()))> 292 typename = decltype(std::declval<_Alloc3*>()->max_size())> 318 = decltype(std::declval<_Alloc3*>( [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/ |
alloc_traits.h | 206 typename = decltype(std::declval<_Alloc3*>()->allocate( 207 std::declval<size_type>(), 208 std::declval<const_void_pointer>()))> 236 typename = decltype(std::declval<_Alloc2*>()->construct( 237 std::declval<_Tp*>(), std::declval<_Args>()...))> 266 typename = decltype(std::declval<_Alloc2*>()->destroy( 267 std::declval<_Tp*>()))> 293 typename = decltype(std::declval<_Alloc3*>()->max_size())> 321 = decltype(std::declval<_Alloc3*>( [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/ |
p5-cxx0x.cpp | 77 template<typename T> T declval(); 83 typedef decltype(swap(declval<T&>(), declval<T&>())) type;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
type_traits | 590 typename add_rvalue_reference<_Tp>::type declval() noexcept; 615 template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())> 663 static integral_constant<bool, noexcept(declval<_Tp&>().~_Tp())> 768 = decltype(static_cast<_To>(declval<_From>()))> 798 // ::delete ::new _Tp(declval<_Arg>()), see c++/51222. 802 = decltype(::new _Tp(declval<_Arg>()))> 916 = decltype(_Tp(declval<_Args>()...))> 1025 : public integral_constant<bool, noexcept(_Tp(declval<_Args>()...))> 1031 noexcept(static_cast<_Tp>(declval<_Arg>()))> 1087 static decltype(declval<_Tp1>() = declval<_Up1>(), __one() [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ |
type_traits | 590 typename add_rvalue_reference<_Tp>::type declval() noexcept; 615 template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())> 663 static integral_constant<bool, noexcept(declval<_Tp&>().~_Tp())> 768 = decltype(static_cast<_To>(declval<_From>()))> 798 // ::delete ::new _Tp(declval<_Arg>()), see c++/51222. 802 = decltype(::new _Tp(declval<_Arg>()))> 916 = decltype(_Tp(declval<_Args>()...))> 1025 : public integral_constant<bool, noexcept(_Tp(declval<_Args>()...))> 1031 noexcept(static_cast<_Tp>(declval<_Arg>()))> 1087 static decltype(declval<_Tp1>() = declval<_Up1>(), __one() [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
type_traits | 590 typename add_rvalue_reference<_Tp>::type declval() noexcept; 615 template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())> 663 static integral_constant<bool, noexcept(declval<_Tp&>().~_Tp())> 768 = decltype(static_cast<_To>(declval<_From>()))> 798 // ::delete ::new _Tp(declval<_Arg>()), see c++/51222. 802 = decltype(::new _Tp(declval<_Arg>()))> 916 = decltype(_Tp(declval<_Args>()...))> 1025 : public integral_constant<bool, noexcept(_Tp(declval<_Args>()...))> 1031 noexcept(static_cast<_Tp>(declval<_Arg>()))> 1087 static decltype(declval<_Tp1>() = declval<_Up1>(), __one() [all...] |
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
swap_noexcept.pass.cpp | 21 // noexcept(swap(declval<Hash&>(), declval<Hash&>())) && 22 // noexcept(swap(declval<Pred&>(), declval<Pred&>())));
|