#include <userver/utils/zstring_view.hpp>
Non-empty string view type that guarantees null-termination and has a c_str()
member function.
Definition at line 23 of file zstring_view.hpp.
Public Member Functions | |
zstring_view (const zstring_view &str)=default | |
constexpr | zstring_view (const char *str) noexcept |
zstring_view (const std::string &str) noexcept | |
zstring_view & | operator= (std::string_view)=delete |
zstring_view & | operator= (const zstring_view &)=default |
constexpr const char * | c_str () const noexcept |
Static Public Member Functions | |
static constexpr zstring_view | UnsafeMake (const char *str, std::size_t len) noexcept |
Definition at line 28 of file zstring_view.hpp.
|
inlinenoexcept |
Definition at line 32 of file zstring_view.hpp.
Definition at line 37 of file zstring_view.hpp.
|
inlinestaticconstexprnoexcept |
Constructs a zstring_view from a pointer and size.
str[len]
should be '\0'. Definition at line 41 of file zstring_view.hpp.