basic_string.h File Reference

Go to the source code of this file.

## Classes

struct | std::hash< basic_string< char, char_traits< char >, _Alloc > >
struct | std::hash< basic_string< char16_t, char_traits< char16_t >, _Alloc > >
struct | std::hash< basic_string< char32_t, char_traits< char32_t >, _Alloc > >
struct | std::hash< basic_string< wchar_t, char_traits< wchar_t >, _Alloc > >

## Namespaces

namespace | std
namespace | std::__detail
namespace | std::literals

## Macros

#define | __cpp_lib_string_udls
#define | _GLIBCXX_STRING_CONSTEXPR

## Functions

template<typename _Str >
constexpr _Str | std::__str_concat (typename _Str::value_type const *__lhs, typename _Str::size_type __lhs_len, typename _Str::value_type const *__rhs, typename _Str::size_type __rhs_len, typename _Str::allocator_type const &__a)
template<typename _InputIterator , typename _CharT = typename iterator_traits<_InputIterator>::value_type, typename _Allocator = allocator<_CharT>, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>>
| std::basic_string (_InputIterator, _InputIterator, _Allocator=_Allocator()) -> basic_string< _CharT, char_traits< _CharT >, _Allocator >
template<typename _CharT , typename _Traits , typename _Allocator = allocator<_CharT>, typename = _RequireAllocator<_Allocator>>
| std::basic_string (basic_string_view< _CharT, _Traits >, const _Allocator &=_Allocator()) -> basic_string< _CharT, _Traits, _Allocator >
template<typename _CharT , typename _Traits , typename _Allocator = allocator<_CharT>, typename = _RequireAllocator<_Allocator>>
| std::basic_string (basic_string_view< _CharT, _Traits >, typename basic_string< _CharT, _Traits, _Allocator >::size_type, typename basic_string< _CharT, _Traits, _Allocator >::size_type, const _Allocator &=_Allocator()) -> basic_string< _CharT, _Traits, _Allocator >
template<typename _CharT , typename _Traits , typename _Alloc >
basic_istream< _CharT, _Traits > & | std::getline (basic_istream< _CharT, _Traits > &&__is, basic_string< _CharT, _Traits, _Alloc > &__str)
template<typename _CharT , typename _Traits , typename _Alloc >
basic_istream< _CharT, _Traits > & | std::getline (basic_istream< _CharT, _Traits > &&__is, basic_string< _CharT, _Traits, _Alloc > &__str, _CharT __delim)
template<typename _CharT , typename _Traits , typename _Alloc >
basic_istream< _CharT, _Traits > & | std::getline (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__str)
template<typename _CharT , typename _Traits , typename _Alloc >
basic_istream< _CharT, _Traits > & | std::getline (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__str, _CharT __delim)
template<>
basic_istream< char > & | std::getline (basic_istream< char > &__in, basic_string< char > &__str, char __delim)
template<>
basic_istream< wchar_t > & | std::getline (basic_istream< wchar_t > &__in, basic_string< wchar_t > &__str, wchar_t __delim)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator!= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator!= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator!= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
basic_string< char > | std::literals::operator""s (const char *__str, size_t __len)
basic_string< char16_t > | std::literals::operator""s (const char16_t *__str, size_t __len)
basic_string< char32_t > | std::literals::operator""s (const char32_t *__str, size_t __len)
basic_string< wchar_t > | std::literals::operator""s (const wchar_t *__str, size_t __len)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (_CharT __lhs, basic_string< _CharT, _Traits, _Alloc > &&__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (_CharT __lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (basic_string< _CharT, _Traits, _Alloc > &&__lhs, _CharT __rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (basic_string< _CharT, _Traits, _Alloc > &&__lhs, basic_string< _CharT, _Traits, _Alloc > &&__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (basic_string< _CharT, _Traits, _Alloc > &&__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (basic_string< _CharT, _Traits, _Alloc > &&__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const _CharT *__lhs, basic_string< _CharT, _Traits, _Alloc > &&__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const basic_string< _CharT, _Traits, _Alloc > &__lhs, _CharT __rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const basic_string< _CharT, _Traits, _Alloc > &__lhs, basic_string< _CharT, _Traits, _Alloc > &&__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr basic_string< _CharT, _Traits, _Alloc > | std::operator+ (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator< (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator< (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator< (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
template<typename _CharT , typename _Traits , typename _Alloc >
basic_ostream< _CharT, _Traits > & | std::operator<< (basic_ostream< _CharT, _Traits > &__os, const basic_string< _CharT, _Traits, _Alloc > &__str)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator<= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator<= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator<= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator== (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr bool | std::operator== (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr bool | std::operator== (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator> (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator> (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator> (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator>= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator>= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
template<typename _CharT , typename _Traits , typename _Alloc >
bool | std::operator>= (const basic_string< _CharT, _Traits, _Alloc > &__lhs, const basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept
template<typename _CharT , typename _Traits , typename _Alloc >
basic_istream< _CharT, _Traits > & | std::operator>> (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__str)
template<>
basic_istream< char > & | std::operator>> (basic_istream< char > &__is, basic_string< char > &__str)
template<typename _CharT , typename _Traits , typename _Alloc >
constexpr void | std::swap (basic_string< _CharT, _Traits, _Alloc > &__lhs, basic_string< _CharT, _Traits, _Alloc > &__rhs) noexcept(/*conditional */)
string | std::to_string (int __val)
string | std::to_string (long __val)
string | std::to_string (long long __val)
string | std::to_string (unsigned __val)
string | std::to_string (unsigned long __val)
string | std::to_string (unsigned long long __val)

## Detailed Description

This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include <string>.

Definition in file basic_string.h.

## Macro Definition Documentation

## __cpp_lib_string_udls

#define __cpp_lib_string_udls

Definition at line 4470 of file basic_string.h.

## _GLIBCXX_STRING_CONSTEXPR

#define _GLIBCXX_STRING_CONSTEXPR

Definition at line 4482 of file basic_string.h.