Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
Thoth::NJson::StringRef Struct Reference

#include <StringRef.hpp>

Public Member Functions

 StringRef () noexcept=default
 
 StringRef (StringRef &&) noexcept=default
 
 StringRef (const StringRef &)=default
 
 StringRef (const std::string &other)
 
 StringRef (std::string_view other, std::shared_ptr< std::string > _data)
 
 operator std::string_view () const noexcept
 
 operator std::string () const noexcept
 
StringRefoperator= (StringRef &&) noexcept=default
 
StringRefoperator= (const StringRef &)=default
 
bool operator== (const StringRef &) const
 

Public Attributes

std::string_view str
 

Constructor & Destructor Documentation

◆ StringRef() [1/5]

Thoth::NJson::StringRef::StringRef ( )
defaultnoexcept

◆ StringRef() [2/5]

Thoth::NJson::StringRef::StringRef ( StringRef &&  )
defaultnoexcept

◆ StringRef() [3/5]

Thoth::NJson::StringRef::StringRef ( const StringRef )
default

◆ StringRef() [4/5]

Thoth::NJson::StringRef::StringRef ( const std::string &  other)

◆ StringRef() [5/5]

Thoth::NJson::StringRef::StringRef ( std::string_view  other,
std::shared_ptr< std::string >  _data 
)

Member Function Documentation

◆ operator std::string()

Thoth::NJson::StringRef::operator std::string ( ) const
noexcept

◆ operator std::string_view()

Thoth::NJson::StringRef::operator std::string_view ( ) const
noexcept

◆ operator=() [1/2]

StringRef & Thoth::NJson::StringRef::operator= ( const StringRef )
default

◆ operator=() [2/2]

StringRef & Thoth::NJson::StringRef::operator= ( StringRef &&  )
defaultnoexcept

◆ operator==()

bool Thoth::NJson::StringRef::operator== ( const StringRef ) const

Member Data Documentation

◆ str

std::string_view Thoth::NJson::StringRef::str

The documentation for this struct was generated from the following file: