一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
static_string.hpp File Reference
#include <string_view>
#include <cstring>
#include <fstream>
#include <nlohmann/json.hpp>
#include "attributes/common.hpp"
#include "types.hpp"
Include dependency graph for static_string.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ein::reify< T, xs >
 
class  ein::basic_static_string< CharT, Traits >
 statically known interned strings these have O(1) comparison for equality More...
 
class  ein::static_c_string
 
struct  std::hash<::ein::basic_static_string< CharT, Traits > >
 
struct  std::hash<::ein::static_c_string >
 

Namespaces

namespace  ein
 
namespace  std
 
namespace  std::ranges
 

Typedefs

using ein::static_string = basic_static_string<char>
 
using ein::static_wstring = basic_static_string<wchar_t>
 
using ein::static_u8string = basic_static_string<char8_t>
 
using ein::static_u16string = basic_static_string<char16_t>
 
using ein::static_u32string = basic_static_string<char32_t>
 

Functions

template<typename CharT , typename Traits >
void ein::to_json (nlohmann::json &j, const basic_static_string< CharT, Traits > &s)
 
template<class T , T ... xs>
consteval basic_static_string< T, std::char_traits< T > > ein::operator""_ss () noexcept
 
template<one_of_t< char > T, T ... xs>
consteval static_c_string ein::operator""_scs () noexcept
 
void ein::to_json (nlohmann::json &j, static_c_string const &s)
 

Detailed Description

SPDX-FileType: Source
SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0

Definition in file static_string.hpp.