/external/libcxx/test/std/experimental/any/any.nonmembers/any.cast/ |
reference_types.fail.cpp | 15 // ValueType const* any_cast(any const *) noexcept; 18 // ValueType * any_cast(any *) noexcept; 23 using std::experimental::any_cast; 28 any_cast<int &>(&a); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 29 any_cast<int &&>(&a); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 30 any_cast<int const &>(&a); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 31 any_cast<int const&&>(&a); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 33 any_cast<int &>(&a2); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 34 any_cast<int &&>(&a2); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may not be a reference."}} 35 any_cast<int const &>(&a2); // expected-error@experimental/any:* 1 {{static_assert failed "_ValueType may n (…) [all...] |
not_copy_constructible.fail.cpp | 15 // ValueType const any_cast(any const&); 18 // ValueType any_cast(any &); 21 // ValueType any_cast(any &&); 23 // Test instantiating the any_cast with a non-copyable type. 28 using std::experimental::any_cast; 40 any_cast<no_copy>(static_cast<any&>(a)); 41 any_cast<no_copy>(static_cast<any const&>(a)); 42 any_cast<no_copy>(static_cast<any &&>(a));
|
const_correctness.fail.cpp | 15 // ValueType any_cast(any const &); 27 using std::experimental::any_cast; 32 any_cast<TestType &>(static_cast<any const&>(a)); // expected-note {{requested here}} 33 any_cast<TestType &&>(static_cast<any const&>(a)); // expected-note {{requested here}} 36 any_cast<TestType2 &>(static_cast<any const&&>(a)); // expected-note {{requested here}} 37 any_cast<TestType2 &&>(static_cast<any const&&>(a)); // expected-note {{requested here}}
|
any_cast_pointer.pass.cpp | 15 // ValueType const* any_cast(any const *) noexcept; 18 // ValueType * any_cast(any *) noexcept; 27 using std::experimental::any_cast; 32 static_assert(noexcept(any_cast<int>(&a)), ""); 35 static_assert(noexcept(any_cast<int>(&ca)), ""); 38 // Test that the return type of any_cast is correct. 41 static_assert(std::is_same<decltype(any_cast<int>(&a)), int*>::value, ""); 42 static_assert(std::is_same<decltype(any_cast<int const>(&a)), int const*>::value, ""); 45 static_assert(std::is_same<decltype(any_cast<int>(&ca)), int const*>::value, ""); 46 static_assert(std::is_same<decltype(any_cast<int const>(&ca)), int const*>::value, "") [all...] |
any_cast_reference.pass.cpp | 15 // ValueType const any_cast(any const&); 18 // ValueType any_cast(any &); 21 // ValueType any_cast(any &&); 32 using std::experimental::any_cast; 39 static_assert(!noexcept(any_cast<int>(static_cast<any&>(a))), ""); 40 static_assert(!noexcept(any_cast<int>(static_cast<any const&>(a))), ""); 41 static_assert(!noexcept(any_cast<int>(static_cast<any &&>(a))), ""); 44 // Test that the return type of any_cast is correct. 47 static_assert(std::is_same<decltype(any_cast<int>(a)), int>::value, ""); 48 static_assert(std::is_same<decltype(any_cast<int const>(a)), int>::value, "") [all...] |
/external/libcxx/test/std/experimental/any/any.nonmembers/ |
swap.pass.cpp | 22 using std::experimental::any_cast; 37 assert(any_cast<int>(a1) == 2); 38 assert(any_cast<int>(a2) == 1);
|
/external/libcxx/test/std/experimental/any/any.class/any.modifiers/ |
clear.pass.cpp | 24 using std::experimental::any_cast;
|
swap.pass.cpp | 24 using std::experimental::any_cast;
|
/external/libcxx/test/std/experimental/any/any.class/any.cons/ |
copy.pass.cpp | 24 using std::experimental::any_cast;
|
move.pass.cpp | 26 using std::experimental::any_cast;
|
value.pass.cpp | 31 using std::experimental::any_cast;
|
/external/libcxx/test/std/experimental/any/any.class/any.assign/ |
move.pass.cpp | 25 using std::experimental::any_cast;
|
copy.pass.cpp | 26 using std::experimental::any_cast;
|
value.pass.cpp | 26 using std::experimental::any_cast;
|
/external/libcxx/test/support/ |
any_helpers.h | 45 assert(std::experimental::any_cast<LastType const>(&a) == nullptr); 53 assert(std::experimental::any_cast<Type const &>(a).value == value); 62 std::experimental::any_cast<Type&>(a).value = value;
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/ |
named_params.hpp | 77 T any_cast() const function in struct:boost::nfp::nfp_detail::nil 190 ref_type operator[]( keyword<unique_id,true> ) const { return m_erased ? nil_t::inst().template any_cast<ref_type>() : m_value; } 191 ref_type operator[]( keyword<unique_id,false> ) const { return m_erased ? nil_t::inst().template any_cast<ref_type>() : m_value; }
|