libstdc++: string_view File Reference

libstdc++

string_view File Reference

Go to the source code of this file.

## Classes
class | std::basic_string_view< _CharT, _Traits >

## Namespaces
namespace | std
namespace | std::literals

## Macros
#define | __glibcxx_exc_in_string

## Typedefs
using | std::string_view
using | std::u16string_view
using | std::u32string_view
using | std::wstring_view

## Functions
constexpr size_t | std::__sv_check (size_t __size, size_t __pos, const char *__s)
constexpr size_t | std::__sv_limit (size_t __size, size_t __pos, size_t __off) noexcept
template<contiguous_iterator _It, sized_sentinel_for< _It > _End>
| std::basic_string_view (_It, _End) -> basic_string_view< iter_value_t< _It > >
template<ranges::contiguous_range _Range>
| std::basic_string_view (_Range &&) -> basic_string_view< ranges::range_value_t< _Range > >
constexpr basic_string_view< char > | std::literals::operator""sv (const char *__str, size_t __len) noexcept
constexpr basic_string_view< char16_t > | std::literals::operator""sv (const char16_t *__str, size_t __len) noexcept
constexpr basic_string_view< char32_t > | std::literals::operator""sv (const char32_t *__str, size_t __len) noexcept
constexpr basic_string_view< wchar_t > | std::literals::operator""sv (const wchar_t *__str, size_t __len) noexcept
template<typename _CharT, typename _Traits>
basic_ostream< _CharT, _Traits > & | std::operator<< (basic_ostream< _CharT, _Traits > &__os, basic_string_view< _CharT, _Traits > __str)
template<typename _CharT, typename _Traits>
constexpr auto | std::operator<=> (basic_string_view< _CharT, _Traits > __x, __type_identity_t< basic_string_view< _CharT, _Traits > > __y) noexcept -> decltype(__detail::__char_traits_cmp_cat< _Traits >(0))
template<typename _CharT, typename _Traits>
constexpr bool | std::operator== (basic_string_view< _CharT, _Traits > __x, type_identity_t< basic_string_view< _CharT, _Traits > > __y) noexcept

## Variables
template<typename _CharT, typename _Traits>
constexpr bool | std::ranges::enable_borrowed_range< basic_string_view< _CharT, _Traits > >
template<typename _CharT, typename _Traits>
constexpr bool | std::ranges::enable_view< basic_string_view< _CharT, _Traits > >

## Detailed Description

This is a Standard C++ Library header.

Definition in file string_view.

## Macro Definition Documentation

## ◆ __glibcxx_exc_in_string

#define __glibcxx_exc_in_string

Definition at line 53 of file string_view.

## Variable Documentation

## ◆ enable_borrowed_range< basic_string_view< _CharT, _Traits > >

template<typename _CharT, typename _Traits>

bool std::ranges::enable_borrowed_range< basic_string_view< _CharT, _Traits > >
| inlineconstexpr

Definition at line 910 of file string_view.

## ◆ enable_view< basic_string_view< _CharT, _Traits > >

template<typename _CharT, typename _Traits>

bool std::ranges::enable_view< basic_string_view< _CharT, _Traits > >
| inlineconstexpr

Definition at line 915 of file string_view.