src/cpp-common/bt2c: rename `span.hpp` -> `make-span.hpp`
[babeltrace.git] / src / cpp-common / bt2c / make-span.hpp
1 /*
2 * Copyright (c) 2024 EfficiOS Inc.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7 #ifndef BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP
8 #define BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP
9
10 #include "cpp-common/bt2s/span.hpp"
11
12 namespace bt2c {
13
14 template <class T>
15 inline constexpr bt2s::span<T> makeSpan(T * const ptr, const size_t count) noexcept
16 {
17 return nonstd::make_span(ptr, count);
18 }
19
20 } /* namespace bt2c */
21
22 #endif /* BABELTRACE_CPP_COMMON_BT2C_MAKE_SPAN_HPP */
This page took 0.029855 seconds and 4 git commands to generate.