string_view.h File Reference
#include "rttr/detail/base/core_prerequisites.h"
#include <string>
#include <ostream>
#include "rttr/detail/impl/string_view_impl.h"

Go to the source code of this file.

Classes

class  rttr::basic_string_view< CharT, Traits >
 The class template basic_string_view describes an non-owning reference to a constant contiguous sequence of char-like objects. More...
 

Namespaces

 rttr
 

Typedefs

using rttr::string_view = basic_string_view< char >
 A class to hold a reference to a continuous sequence of char objects. More...
 

Functions

template<typename CharT , typename Traits >
constexpr bool rttr::operator!= (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator!= (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator!= (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator!= (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator!= (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
std::basic_string< CharT, Traits > rttr::operator+ (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs)
 
template<typename CharT , typename Traits >
std::basic_string< CharT, Traits > rttr::operator+ (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs)
 
template<typename CharT , typename Traits >
std::basic_string< CharT, Traits > rttr::operator+ (basic_string_view< CharT, Traits > lhs, std::basic_string< CharT, Traits > &&rhs)
 
template<typename CharT , typename Traits >
std::basic_string< CharT, Traits > rttr::operator+ (std::basic_string< CharT, Traits > &&lhs, basic_string_view< CharT, Traits > rhs)
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator< (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator< (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator< (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator< (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator< (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & rttr::operator<< (std::basic_ostream< CharT, Traits > &os, basic_string_view< CharT, Traits > v)
 Performs a stream output on a basic_string_view . More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator<= (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator<= (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator<= (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator<= (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator<= (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator== (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator== (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator== (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator== (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator== (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator> (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator> (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator> (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator> (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator> (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator>= (basic_string_view< CharT, Traits > lhs, basic_string_view< CharT, Traits > rhs) noexcept
 Compares the two views lhs and rhs. More...
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator>= (const char *lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator>= (basic_string_view< CharT, Traits > lhs, const char *rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator>= (const std::basic_string< CharT, Traits > &lhs, basic_string_view< CharT, Traits > rhs) noexcept
 
template<typename CharT , typename Traits >
constexpr bool rttr::operator>= (basic_string_view< CharT, Traits > lhs, const std::basic_string< CharT, Traits > &rhs) noexcept