userver: userver/utils/zstring_view.hpp File Reference
Loading...
Searching...
No Matches
zstring_view.hpp File Reference

Detailed Description

Non-empty string view type that guarantees null-termination and has a c_str() member function.

Definition in file zstring_view.hpp.

Go to the source code of this file.

#include <string>
#include <string_view>
#include <type_traits>
#include <fmt/format.h>
#include <userver/formats/serialize/to.hpp>
#include <userver/utils/assert.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

class  utils::zstring_view
 Non-empty string view type that guarantees null-termination and has a c_str() member function. More...
 
struct  fmt::formatter<::utils::zstring_view, char >
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<class Value>
Value utils::Serialize (zstring_view view, formats::serialize::To< Value >)
 
template<class... NotUsed>
auto fmt::runtime (::utils::zstring_view s, NotUsed...) -> decltype(fmt::runtime(std::string_view{s}))
 

Function Documentation

◆ runtime()

template<class... NotUsed>
auto fmt::runtime ( ::utils::zstring_view s,
NotUsed...  ) -> decltype(fmt::runtime(std::string_view{s}))
inline

Definition at line 68 of file zstring_view.hpp.