cpp-common/bt2/shared-object.hpp: make the optional part public
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 17 Nov 2023 20:04:27 +0000 (15:04 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 15:57:04 +0000 (10:57 -0500)
commit64fbd3f734a0e5d5b5cc63602dcd6c6fe0bc4333
tree08521884dcafc23025bb6e4f18bf994613e3907e
parentaf38ae4f5e13adddb0d69bec31d3ba10fc5d5db9
cpp-common/bt2/shared-object.hpp: make the optional part public

Make it possible to have an empty shared object instead of needing two
`bt2s::optional` (the `bt2::SharedObject` one and the user one).

Adding a default constructor to build an empty shared object and the
`bool` operator to check whether or not it's empty; similar to
`std::shared_ptr`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I646cf883eba47ff1058c95d1b027396ee713fa0b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11399
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
src/cpp-common/bt2/shared-object.hpp
This page took 0.025097 seconds and 4 git commands to generate.