cpp-common: add `bt2s::string_view`, alias of `bpstd::string_view`
[babeltrace.git] / src / cpp-common / bt2s / string-view.hpp
CommitLineData
45f637cc
PP
1/*
2 * Copyright (c) 2023 Philippe Proulx <pproulx@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef BABELTRACE_CPP_COMMON_BT2S_STRING_VIEW_HPP
8#define BABELTRACE_CPP_COMMON_BT2S_STRING_VIEW_HPP
9
10#include "cpp-common/vendor/string_view-standalone/string_view.hpp"
11
12namespace bt2s {
13
14template <typename CharT, typename TraitsT = std::char_traits<CharT>>
15using basic_string_view = bpstd::basic_string_view<CharT, TraitsT>;
16
17using string_view = bpstd::string_view;
18using wstring_view = bpstd::wstring_view;
19using u16string_view = bpstd::u16string_view;
20using u32string_view = bpstd::u32string_view;
21
22} /* namespace bt2s */
23
24#endif /* BABELTRACE_CPP_COMMON_BT2S_STRING_VIEW_HPP */
This page took 0.023499 seconds and 4 git commands to generate.