mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-07 15:20:31 +00:00
18 lines
374 B
C++
18 lines
374 B
C++
#ifndef LLARP_STRING_VIEW_HPP
|
|
#define LLARP_STRING_VIEW_HPP
|
|
|
|
#include <absl/hash/hash.h>
|
|
#include <absl/strings/string_view.h>
|
|
namespace llarp
|
|
{
|
|
using string_view = absl::string_view;
|
|
using string_view_hash = absl::Hash< string_view >;
|
|
|
|
static std::string
|
|
string_view_string(const string_view& v)
|
|
{
|
|
return std::string(v);
|
|
}
|
|
} // namespace llarp
|
|
#endif
|