cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[babeltrace.git] / src / cpp-common / bt2c / span.hpp
1 /*
2 * Copyright (c) 2024 EfficiOS Inc.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7 #ifndef BABELTRACE_CPP_COMMON_BT2C_SPAN_HPP
8 #define BABELTRACE_CPP_COMMON_BT2C_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_SPAN_HPP */
This page took 0.031706 seconds and 4 git commands to generate.