General Utility Library for C++14  2.11
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.

Author
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 http://www.boost.org/LICENSE_1_0.txt)

For more information, see http://www.boost.org

Based on the StringRef implementation in LLVM (http://llvm.org) and N3422 by Jeffrey Yasskin http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html Updated July 2015 to reflect the Library Fundamentals TS http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html

#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.

Classes

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

Namespaces

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

Typedefs

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...