[libc++] Refactor tests for hijacked address operator in vector (#117457)

This reduces the amount of boilerplate needed to implement the tests.

GitOrigin-RevId: 44ef12b020c07d195519d0613d21f3b8ab29a22d
12 files changed