Simple struct to act as a container for a string. While not necessary per se, this is more representative of the expected usage of ComputePairIfAbsent* (i.e. pointing to internal state of more complex objects).
| 85 | // ComputePairIfAbsent* (i.e. pointing to internal state of more complex |
| 86 | // objects). |
| 87 | struct SimpleStruct { |
| 88 | string str; |
| 89 | }; |
| 90 | } // anonymous namespace |
| 91 | |
| 92 | TEST(ComputePairIfAbsentTest, TestComputePairDestructState) { |