[libc++][test] Silence allocator conversion warnings
authorCasey Carter <Casey@Carter.net>
Mon, 9 Jan 2023 22:54:44 +0000 (14:54 -0800)
committerCasey Carter <Casey@Carter.net>
Tue, 10 Jan 2023 19:21:11 +0000 (11:21 -0800)
commit886e92c1abf17a98abb9fb7f58bc02028a3f9a7e
tree0e9f30ba00b6bba3b439d09169fd8b332dbb04de
parent356c71830cdf289f32f0bcbcff83cc8870217171
[libc++][test] Silence allocator conversion warnings

... by accepting `std::size_t` instead of `int` in `allocate` and `deallocate` functions.

Drive-by: To conform to the allocator requirements, the `Allocator` types in these tests need to have (1) converting constructors and (2) cross-specialization `==` that returns `true` at least for copies of the same allocator.
Differential Revision: https://reviews.llvm.org/D141334
libcxx/test/libcxx/containers/sequences/vector/robust_against_adl.pass.cpp
libcxx/test/std/containers/sequences/vector.bool/ctor_exceptions.pass.cpp
libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp