General Utility Library for C++14  2.7
Classes | Namespaces | Typedefs
string_view.h File Reference

Detailed Description

Provides a gul14::string_view that is fully compatible with C++17's std::string_view.

Marshall Clow, Beman Dawes, General Utility Library Contributors

Distributed under the Boost Software License, Version 1.0. (See Boost Software License - Version 1.0 or

For more information, see

Based on the StringRef implementation in LLVM ( and N3422 by Jeffrey Yasskin Updated July 2015 to reflect the Library Fundamentals TS

#include <cstddef>
#include <stdexcept>
#include <algorithm>
#include <iterator>
#include <string>
#include <cstring>
#include <iosfwd>
#include "gul14/internal.h"
Include dependency graph for string_view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  gul14::basic_string_view< charT, traits >
 A view to a contiguous sequence of chars or char-like objects. More...


 Namespace gul14 contains all functions and classes of the General Utility Library.


using gul14::string_view = basic_string_view< char >
 A view to a contiguous sequence of chars. More...
using gul14::u16string_view = basic_string_view< char16_t >
 A view to a contiguous sequence of char16_ts. More...
using gul14::u32string_view = basic_string_view< char32_t >
 A view to a contiguous sequence of char32_ts. More...
using gul14::wstring_view = basic_string_view< wchar_t >
 A view to a contiguous sequence of wchar_ts. More...