Non-empty string view to a compile time known null terminated char array that lives for the lifetime of program, as per [lex.string]; a drop-in replacement for static const std::string kVar = "value" and constexpr std::string_view kVar = "value".
Definition in file string_literal.hpp.
Go to the source code of this file.
#include <string>#include <string_view>#include <type_traits>#include <fmt/core.h>#include <userver/compiler/impl/constexpr.hpp>#include <userver/formats/serialize/to.hpp>#include <userver/utils/assert.hpp>#include <userver/utils/zstring_view.hpp>
This graph shows which files directly or indirectly include this file:Classes | |
| class | utils::StringLiteral |
Non-empty string view to a compile time known null terminated char array that lives for the lifetime of program, as per [lex.string]; a drop-in replacement for static const std::string kVar = "value" and constexpr std::string_view kVar = "value". More... | |
| struct | fmt::formatter<::utils::StringLiteral, char > |
Namespaces | |
| namespace | utils |
| Utilities. | |
Functions | |
| template<class Value> | |
| Value | utils::Serialize (StringLiteral literal, formats::serialize::To< Value >) |