Lines Matching refs:exp_int

28 typedef expected<int, int> exp_int;  typedef
56 exp_int e; in TEST()
69 exp_int e; in TEST()
70 exp_int e2 = e; in TEST()
84 exp_int e; in TEST()
85 exp_int e2 = std::move(e); in TEST()
108 exp_int e2 = e; in TEST()
118 exp_int e2 = std::move(e); in TEST()
127 exp_int e = 3; in TEST()
154 exp_int e = 3.3f; // double to int in TEST()
164 exp_int::unexpected_type unexp = unexpected(10); in TEST()
165 exp_int e = unexp; in TEST()
187 exp_int e = unexpected(10); in TEST()
234 exp_int e = 10; in TEST()
235 exp_int e2 = 20; in TEST()
241 exp_int e3 = 10; in TEST()
242 exp_int e4 = 20; in TEST()
258 exp_int e = 10; in TEST()
277 exp_int e = 10; in TEST()
341 exp_int e = 10; in TEST()
342 exp_int e2 = 20; in TEST()
359 exp_int e = unexpected(10); in TEST()
360 exp_int e2 = unexpected(20); in TEST()
377 exp_int e = 10; in TEST()
378 exp_int e2 = unexpected(30); in TEST()
410 exp_int e = 10; in TEST()
414 exp_int e2 = unexpected(10); in TEST()
420 exp_int e = 10; in TEST()
424 exp_int e2 = unexpected(10); in TEST()
430 exp_int e = 10; in TEST()
431 exp_int e2 = 10; in TEST()
446 exp_int e = 10; in TEST()
447 exp_int e2 = 20; in TEST()
455 exp_int e = 10; in TEST()
456 exp_int e2 = unexpected(10); in TEST()
471 exp_int e = unexpected(10); in TEST()
472 exp_int e2 = unexpected(10); in TEST()
487 exp_int e = unexpected(10); in TEST()
488 exp_int e2 = unexpected(20); in TEST()
503 exp_int e = unexpected(10); in TEST()
504 exp_int::unexpected_type error = 10; in TEST()
519 exp_int e = unexpected(10); in TEST()
520 exp_int::unexpected_type error = 20; in TEST()
817 constexpr exp_int e(3); in TEST()
818 constexpr exp_int::unexpected_type err(3); in TEST()
822 static_assert(exp_int().value() == 0); in TEST()
824 static_assert(exp_int(e).value() == 3); in TEST()
826 static_assert(exp_int(exp_int(4)).value() == 4); in TEST()
828 static_assert(exp_int(i).value() == 4); in TEST()
830 static_assert(exp_int(err).error() == 3); in TEST()
832 static_assert(exp_int(unexpected(3)).error() == 3); in TEST()
834 static_assert(*exp_int(3) == 3); in TEST()
835 static_assert(exp_int(3).has_value() == true); in TEST()
836 static_assert(exp_int(3).value_or(4) == 3); in TEST()