cpp-common: Add hash() and isSame() methods to BorrowedObj
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 22 Feb 2022 20:43:46 +0000 (15:43 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
commitfeeaa2471648de11a187c38cfad18b3c53619e62
treeb5ca4984aca18bdefa616f018c3d9d9c00fb63c7
parentb5f55e9f83cf782b3d423912cfffece103177fe1
cpp-common: Add hash() and isSame() methods to BorrowedObj

This will allow us to use the C++ wrapper objects in
`std::unordered_map` by using these methods in custom hasher and isEqual
objects.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I4e018ece9ea4ca755f6612cd9adec408667b202d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7356
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10755
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/internal/borrowed-obj.hpp
This page took 0.044082 seconds and 4 git commands to generate.