29 std::vector in{3, 9, 11};
30 std::vector<size_t> out;
33 static_assert(std::is_same_v<
decltype(i),
const size_t&>);
34 static_assert(std::is_same_v<
decltype(e),
int&>);
36 e = narrow_cast<int>(2 * e + i);
39 CHECK(in == std::vector{6, 19, 24});
40 CHECK(out == std::vector<size_t>{0, 1, 2});