libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
traits.hpp
1 #pragma once
2 
3 #include "fly/types/string/concepts.hpp"
4 
5 #include <cstdint>
6 #include <string>
7 
8 namespace fly::detail {
9 
16 template <fly::StandardCharacter CharType>
18 {
19  using string_type = std::basic_string<CharType>;
20  using size_type = typename string_type::size_type;
21  using char_type = CharType;
22  using view_type = std::basic_string_view<char_type>;
23  using int_type = typename std::char_traits<char_type>::int_type;
24  using codepoint_type = std::uint32_t;
25 };
26 
27 } // namespace fly::detail
Definition: traits.hpp:18