Googletest export

Docs: Clarifying matcher in `Pointwise` and `UnorderedPointwise`
PiperOrigin-RevId: 367059198
This commit is contained in:
Abseil Team 2021-04-06 12:22:23 -07:00 committed by Dino Radaković
parent 5c8ca58edf
commit 54689b1935

View File

@ -362,10 +362,11 @@ messages, you can use:
int len)` -- see [Multi-argument Matchers](#MultiArgMatchers)). int len)` -- see [Multi-argument Matchers](#MultiArgMatchers)).
* The array being matched may be multi-dimensional (i.e. its elements can be * The array being matched may be multi-dimensional (i.e. its elements can be
arrays). arrays).
* `m` in `Pointwise(m, ...)` should be a matcher for `::std::tuple<T, U>` * `m` in `Pointwise(m, ...)` and `UnorderedPointwise(m, ...)` should be a
where `T` and `U` are the element type of the actual container and the matcher for `::std::tuple<T, U>` where `T` and `U` are the element type of
expected container, respectively. For example, to compare two `Foo` the actual container and the expected container, respectively. For example,
containers where `Foo` doesn't support `operator==`, one might write: to compare two `Foo` containers where `Foo` doesn't support `operator==`,
one might write:
```cpp ```cpp
using ::std::get; using ::std::get;