Backport
string_view.hpp File Reference

This header provides definitions from the C++ header <string_view> More...

#include "detail/config.hpp"
#include <algorithm>
#include <string>
#include <ostream>
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <iterator>
#include <ios>
+ Include dependency graph for string_view.hpp:

Go to the source code of this file.

Classes

class  bpstd::basic_string_view< CharT, Traits >
 A semantic non-owning wrapper around contiguous character sequences. More...
 

Typedefs

using bpstd::string_view = basic_string_view< char >
 
using bpstd::wstring_view = basic_string_view< wchar_t >
 
using bpstd::u16string_view = basic_string_view< char16_t >
 
using bpstd::u32string_view = basic_string_view< char32_t >
 

Functions

template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & bpstd::operator<< (std::basic_ostream< CharT, Traits > &o, const basic_string_view< CharT, Traits > &str)
 Overload for ostream output of basic_string_view. More...
 
template<typename CharT , typename Traits >
void bpstd::swap (basic_string_view< CharT, Traits > &lhs, basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator== (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator!= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator< (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator> (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator<= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_CPP14_CONSTEXPR bool bpstd::operator>= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator== (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator== (basic_string_view< CharT, Traits > lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator== (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator== (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator== (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator!= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator!= (const basic_string_view< CharT, Traits > &lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator!= (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator!= (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator!= (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator< (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator< (const basic_string_view< CharT, Traits > &lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator< (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator< (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator< (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator> (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator> (const basic_string_view< CharT, Traits > &lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator> (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator> (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator> (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator<= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator<= (const basic_string_view< CharT, Traits > &lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator<= (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator<= (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator<= (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator>= (const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator>= (const basic_string_view< CharT, Traits > &lhs, const CharT *rhs) noexcept
 
template<typename CharT , typename Traits >
BPSTD_INLINE_VISIBILITY BPSTD_CPP14_CONSTEXPR bool bpstd::operator>= (const CharT *lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator>= (const std::basic_string< CharT, Traits, Allocator > &lhs, const basic_string_view< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits , typename Allocator >
BPSTD_INLINE_VISIBILITY bool bpstd::operator>= (const basic_string_view< CharT, Traits > &lhs, const std::basic_string< CharT, Traits, Allocator > &rhs)
 

Detailed Description

This header provides definitions from the C++ header <string_view>

Definition in file string_view.hpp.

Function Documentation

◆ operator<<()

template<typename CharT , typename Traits >
std::basic_ostream<CharT,Traits>& bpstd::operator<< ( std::basic_ostream< CharT, Traits > &  o,
const basic_string_view< CharT, Traits > &  str 
)

Overload for ostream output of basic_string_view.

Parameters
oThe output stream to print to
strthe string to print
Returns
reference to the output stream