Your opinion will help to improve our service
Leave a feedback >#include <userver/utils/null_terminated_view.hpp>
Non-empty string view to a null terminated char array.
Definition at line 23 of file null_terminated_view.hpp.
Public Member Functions | |
constexpr | NullTerminatedView (const char *str) noexcept |
NullTerminatedView (const std::string &str) noexcept | |
constexpr const char * | c_str () const noexcept |
Static Public Member Functions | |
static constexpr NullTerminatedView | UnsafeMake (const char *str, std::size_t len) noexcept |
Definition at line 27 of file null_terminated_view.hpp.
|
inlinenoexcept |
Definition at line 31 of file null_terminated_view.hpp.
Definition at line 33 of file null_terminated_view.hpp.
|
inlinestaticconstexprnoexcept |
Constructs a NullTerminatedView from a pointer and size.
str[len]
should be '\0'. Definition at line 37 of file null_terminated_view.hpp.