bt2c::makeSpan() is the only thing `make-span.hpp` offers.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I3a4a9cb0712cc97d11e9c9adf26f77539f5bb76c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12454
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
cpp-common/bt2c/glib-up.hpp \
cpp-common/bt2c/libc-up.hpp \
cpp-common/bt2c/logging.hpp \
+ cpp-common/bt2c/make-span.hpp \
cpp-common/bt2c/prio-heap.hpp \
cpp-common/bt2c/read-fixed-len-int.hpp \
cpp-common/bt2c/safe-ops.hpp \
- cpp-common/bt2c/span.hpp \
cpp-common/bt2c/std-int.hpp \
cpp-common/bt2c/type-traits.hpp \
cpp-common/bt2c/uuid.hpp \
--- /dev/null
+/*
+ * Copyright (c) 2024 EfficiOS Inc.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP
+#define BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP
+
+#include "cpp-common/bt2s/span.hpp"
+
+namespace bt2c {
+
+template <class T>
+inline constexpr bt2s::span<T> makeSpan(T * const ptr, const size_t count) noexcept
+{
+ return nonstd::make_span(ptr, count);
+}
+
+} /* namespace bt2c */
+
+#endif /* BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP */
+++ /dev/null
-/*
- * Copyright (c) 2024 EfficiOS Inc.
- *
- * SPDX-License-Identifier: MIT
- */
-
-#ifndef BABELTRACE_CPP_COMMON_BT2C_SPAN_HPP
-#define BABELTRACE_CPP_COMMON_BT2C_SPAN_HPP
-
-#include "cpp-common/bt2s/span.hpp"
-
-namespace bt2c {
-
-template <class T>
-inline constexpr bt2s::span<T> makeSpan(T * const ptr, const size_t count) noexcept
-{
- return nonstd::make_span(ptr, count);
-}
-
-} /* namespace bt2c */
-
-#endif /* BABELTRACE_CPP_COMMON_BT2C_SPAN_HPP */
#include "cpp-common/bt2/graph.hpp"
#include "cpp-common/bt2c/c-string-view.hpp"
-#include "cpp-common/bt2c/span.hpp"
+#include "cpp-common/bt2c/make-span.hpp"
#include "cpp-common/bt2s/make-unique.hpp"
#include "clk-cls-compat-postconds-triggers.hpp"