Commit | Line | Data |
---|---|---|
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 | ||
12 | namespace bt2s { | |
13 | ||
14 | template <typename CharT, typename TraitsT = std::char_traits<CharT>> | |
15 | using basic_string_view = bpstd::basic_string_view<CharT, TraitsT>; | |
16 | ||
17 | using string_view = bpstd::string_view; | |
18 | using wstring_view = bpstd::wstring_view; | |
19 | using u16string_view = bpstd::u16string_view; | |
20 | using u32string_view = bpstd::u32string_view; | |
21 | ||
22 | } /* namespace bt2s */ | |
23 | ||
24 | #endif /* BABELTRACE_CPP_COMMON_BT2S_STRING_VIEW_HPP */ |