Home
last modified time | relevance | path

Searched refs:opt2 (Results 1 – 25 of 52) sorted by relevance

123

/external/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/
Dswap.pass.cpp72 optional<int> opt2; in main() local
73 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
75 assert(static_cast<bool>(opt2) == false); in main()
76 opt1.swap(opt2); in main()
78 assert(static_cast<bool>(opt2) == false); in main()
82 optional<int> opt2; in main() local
83 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
86 assert(static_cast<bool>(opt2) == false); in main()
87 opt1.swap(opt2); in main()
89 assert(static_cast<bool>(opt2) == true); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/
Dswap.pass.cpp71 optional<int> opt2; in main() local
72 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
74 assert(static_cast<bool>(opt2) == false); in main()
75 opt1.swap(opt2); in main()
77 assert(static_cast<bool>(opt2) == false); in main()
81 optional<int> opt2; in main() local
82 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
85 assert(static_cast<bool>(opt2) == false); in main()
86 opt1.swap(opt2); in main()
88 assert(static_cast<bool>(opt2) == true); in main()
[all …]
/external/libcxx/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp118 optional<int> opt2; in main() local
119 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
121 assert(static_cast<bool>(opt2) == false); in main()
122 swap(opt1, opt2); in main()
124 assert(static_cast<bool>(opt2) == false); in main()
128 optional<int> opt2; in main() local
129 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
132 assert(static_cast<bool>(opt2) == false); in main()
133 swap(opt1, opt2); in main()
135 assert(static_cast<bool>(opt2) == true); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp117 optional<int> opt2; in main() local
118 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
120 assert(static_cast<bool>(opt2) == false); in main()
121 swap(opt1, opt2); in main()
123 assert(static_cast<bool>(opt2) == false); in main()
127 optional<int> opt2; in main() local
128 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
131 assert(static_cast<bool>(opt2) == false); in main()
132 swap(opt1, opt2); in main()
134 assert(static_cast<bool>(opt2) == true); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp74 constexpr optional<int> opt2; in main() local
75 opt = std::move(opt2); in main()
76 static_assert(static_cast<bool>(opt2) == false, ""); in main()
77 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
81 constexpr optional<int> opt2(2); in main() local
82 opt = std::move(opt2); in main()
83 static_assert(static_cast<bool>(opt2) == true, ""); in main()
84 static_assert(*opt2 == 2, ""); in main()
85 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
86 assert(*opt == *opt2); in main()
[all …]
Dconst_optional_U.pass.cpp205 constexpr optional<short> opt2; in main() local
206 opt = opt2; in main()
207 static_assert(static_cast<bool>(opt2) == false, ""); in main()
208 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
212 constexpr optional<short> opt2(short{2}); in main()
213 opt = opt2; in main()
214 static_assert(static_cast<bool>(opt2) == true, ""); in main()
215 static_assert(*opt2 == 2, ""); in main()
216 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
217 assert(*opt == *opt2); in main()
[all …]
Doptional_U.pass.cpp210 optional<short> opt2; in main() local
211 opt = std::move(opt2); in main()
212 assert(static_cast<bool>(opt2) == false); in main()
213 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
217 optional<short> opt2(short{2}); in main()
218 opt = std::move(opt2); in main()
219 assert(static_cast<bool>(opt2) == true); in main()
220 assert(*opt2 == 2); in main()
221 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
222 assert(*opt == *opt2); in main()
[all …]
Dcopy.pass.cpp81 const optional<T> opt2; in main() local
83 opt = opt2; in main()
85 assert(!opt2.has_value()); in main()
91 optional<X> opt2(X{}); in main() local
92 assert(static_cast<bool>(opt2) == true); in main()
96 opt = opt2; in main()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp75 constexpr optional<int> opt2; in main() local
76 opt = std::move(opt2); in main()
77 static_assert(static_cast<bool>(opt2) == false, ""); in main()
78 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
82 constexpr optional<int> opt2(2); in main() local
83 opt = std::move(opt2); in main()
84 static_assert(static_cast<bool>(opt2) == true, ""); in main()
85 static_assert(*opt2 == 2, ""); in main()
86 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
87 assert(*opt == *opt2); in main()
[all …]
Dconst_optional_U.pass.cpp206 constexpr optional<short> opt2; in main() local
207 opt = opt2; in main()
208 static_assert(static_cast<bool>(opt2) == false, ""); in main()
209 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
213 constexpr optional<short> opt2(short{2}); in main()
214 opt = opt2; in main()
215 static_assert(static_cast<bool>(opt2) == true, ""); in main()
216 static_assert(*opt2 == 2, ""); in main()
217 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
218 assert(*opt == *opt2); in main()
[all …]
Doptional_U.pass.cpp211 optional<short> opt2; in main() local
212 opt = std::move(opt2); in main()
213 assert(static_cast<bool>(opt2) == false); in main()
214 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
218 optional<short> opt2(short{2}); in main()
219 opt = std::move(opt2); in main()
220 assert(static_cast<bool>(opt2) == true); in main()
221 assert(*opt2 == 2); in main()
222 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
223 assert(*opt == *opt2); in main()
[all …]
Dcopy.pass.cpp81 const optional<T> opt2; in main() local
83 opt = opt2; in main()
85 assert(!opt2.has_value()); in main()
91 optional<X> opt2(X{}); in main() local
92 assert(static_cast<bool>(opt2) == true); in main()
96 opt = opt2; in main()
/external/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.ctor/
Dcopy.pass.cpp45 constexpr optional<T> opt2 = opt; in main() local
46 (void)opt2; in main()
52 constexpr optional<T> opt2 = opt; in main() local
53 (void)opt2; in main()
Dmove.pass.cpp46 constexpr optional<T> opt2 = std::move(opt); in main() local
47 (void)opt2; in main()
53 constexpr optional<T> opt2 = std::move(opt); in main() local
54 (void)opt2; in main()
/external/llvm-project/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.ctor/
Dcopy.pass.cpp46 constexpr optional<T> opt2 = opt; in main() local
47 (void)opt2; in main()
53 constexpr optional<T> opt2 = opt; in main() local
54 (void)opt2; in main()
Dmove.pass.cpp47 constexpr optional<T> opt2 = std::move(opt); in main() local
48 (void)opt2; in main()
54 constexpr optional<T> opt2 = std::move(opt); in main() local
55 (void)opt2; in main()
/external/llvm/utils/
Dfindoptdiff63 opt2="${bc2}.opt"
71 opt2="$llvm2/Debug/bin/opt"
79 $opt2 $switches_to_use "$bc2" -o - | $dis2 | $filt2 > "$opt2ll"
/external/llvm-project/llvm/utils/
Dfindoptdiff63 opt2="${bc2}.opt"
71 opt2="$llvm2/Debug/bin/opt"
79 $opt2 $switches_to_use "$bc2" -o - | $dis2 | $filt2 > "$opt2ll"
/external/libabigail/tests/
Dtest-cxx-compat.cc23 optional<bool> opt2(true);
24 REQUIRE(opt2.has_value());
25 CHECK(opt2.value() == true);
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py185 opt2 = optional_ops.Optional.from_value((3.0, 4.0))
188 [opt1._variant_tensor, opt2._variant_tensor])
194 opt_none2 = optional_ops.Optional.empty(opt2.element_spec)
208 opt2 = optional_ops.Optional.from_value([3, 4.0])
210 opt4 = optional_ops.Optional.from_value((6.0, opt2._variant_tensor))
249 opt2 = optional_ops.Optional.from_value(opt1._variant_tensor)
251 zeros_tensor = array_ops.zeros_like(opt2._variant_tensor)
252 zeros_opt = optional_ops._OptionalImpl(zeros_tensor, opt2.element_spec)
455 opt2 = optional_ops.Optional.from_value(constant_op.constant(42.0))
459 self.assertEqual(self.evaluate(f(opt2)), 42.0)
/external/llvm-project/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp54 optional<T> opt2; in test() local
55 opt = std::move(opt2); in test()
Dcopy.pass.cpp57 optional<T> opt2; in test() local
58 opt = opt2; in test()
/external/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp49 optional<T> opt2; in test() local
50 opt = std::move(opt2); in test()
Dcopy.pass.cpp52 optional<T> opt2; in test() local
53 opt = opt2; in test()
/external/openscreen/third_party/abseil/src/absl/types/
Doptional_test.cc340 constexpr absl::optional<ConstexprType> opt2{absl::in_place_t(), {1, 2}}; in TEST() local
341 static_assert(opt2, ""); in TEST()
342 static_assert((*opt2).x == ConstexprType::kCtorInitializerList, ""); in TEST()
376 constexpr absl::optional<ConstexprType> opt2{2}; in TEST() local
377 static_assert(opt2, ""); in TEST()
378 static_assert(ConstexprType::kCtorInt == (*opt2).x, ""); in TEST()
538 absl::optional<Listenable> opt2(absl::in_place, 1, 2); in TEST() local
539 EXPECT_TRUE(opt2); in TEST()
592 const absl::optional<int> empty, opt1 = 1, opt2 = 2; in TEST() local
606 opt1_to_opt2 = opt2; in TEST()
[all …]

123