/external/libcxx/test/utilities/utility/declval/ |
Android.mk | 17 test_makefile := external/libcxx/test/utilities/utility/declval/Android.mk 19 test_name := utilities/utility/declval/declval 20 test_src := declval.pass.cpp
|
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/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/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, "");
|
/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/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/CXX/except/except.spec/ |
canonical.cpp | 9 template <class _Tp> _Tp&& declval() noexcept; 14 static const bool value = noexcept(_Tp(declval<_Args>()...));
|
/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-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/9/sources/cxx-stl/gnu-libstdc++/4.8/include/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/9/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/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
alloc_traits.h | 210 typename = decltype(std::declval<_Alloc3*>()->allocate( 211 std::declval<size_type>(), 212 std::declval<const_void_pointer>()))> 238 typename = decltype(std::declval<_Alloc2*>()->construct( 239 std::declval<_Tp*>(), std::declval<_Args>()...))> 265 typename = decltype(std::declval<_Alloc2*>()->destroy( 266 std::declval<_Tp*>()))> 290 typename = decltype(std::declval<_Alloc3*>()->max_size())> 316 = decltype(std::declval<_Alloc3*>( [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
alloc_traits.h | 210 typename = decltype(std::declval<_Alloc3*>()->allocate( 211 std::declval<size_type>(), 212 std::declval<const_void_pointer>()))> 238 typename = decltype(std::declval<_Alloc2*>()->construct( 239 std::declval<_Tp*>(), std::declval<_Args>()...))> 265 typename = decltype(std::declval<_Alloc2*>()->destroy( 266 std::declval<_Tp*>()))> 290 typename = decltype(std::declval<_Alloc3*>()->max_size())> 316 = decltype(std::declval<_Alloc3*>( [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-exception-spec-cxx11.cpp | 64 template<typename T> T declval() noexcept; 66 template<typename T, typename = decltype(T(declval<T&&>()))>
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ext/ |
alloc_traits.h | 191 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ext/ |
alloc_traits.h | 191 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/ext/ |
alloc_traits.h | 178 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/ext/ |
alloc_traits.h | 178 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/ |
alloc_traits.h | 191 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/ |
alloc_traits.h | 164 || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
|