DAW string_view
daw_string_view2_fwd.h
Go to the documentation of this file.
1// Copyright (c) Darrell Wright
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
5//
6// Official repository: https://github.com/beached/string_view
7//
8
9#pragma once
10
11#include <ciso646>
12
13namespace daw {
14 namespace sv2 {
19 pointer,
22 size
23 };
24
25#if defined( _MSC_VER ) or defined( DAW_SV_USE_PTRSIZE )
26 // MSVC has issues with pointers to the trailing zero in a string literal at
27 // compile time
30#else
33#endif
34
38 template<typename CharT, string_view_bounds_type BoundsType =
40 struct basic_string_view;
41
44#if defined( __cpp_char8_t )
45 using u8string_view = basic_string_view<char8_t>;
46#endif
49 } // namespace sv2
50} // namespace daw
string_view_bounds_type
How is the end of range stored in string_view.
Definition: daw_string_view2_fwd.h:16
@ pointer
Store the end of range as a pointer. This is optimal for code where calls to methods like remove_pref...
@ size
Store the end of range as a size_type. This is optimal for where calls to size( ) or remove_suffix li...
constexpr string_view_bounds_type default_string_view_bounds_type
Definition: daw_string_view2_fwd.h:31
Definition: daw_string_view2.h:64
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition: daw_string_view2.h:137