|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
POD-safe string_view with full constexpr semantics and consteval/runtime dual-path optimization.
More...
#include <algorithm>#include <compare>#include <cstdint>#include <cstring>#include <string_view>#include <type_traits>#include <cstddef>#include "jh/metax/char.h"#include "jh/pods/pod_like.h"#include "jh/detail/base64_common.h"#include "jh/metax/hash.h"Go to the source code of this file.
Classes | |
| struct | jh::pod::string_view |
| Read-only string view with POD layout. More... | |
Namespaces | |
| namespace | jh::pod |
| Aggregated entry point for Plain-Old-Data and layout-stable value utilities. | |
| namespace | jh::pod::literals |
Official literal helpers for jh::pod types. | |
Functions | |
| constexpr jh::pod::string_view | jh::pod::literals::operator""_psv (const char *str, std::size_t len) noexcept |
User-defined literal for jh::pod::string_view. | |
POD-safe string_view with full constexpr semantics and consteval/runtime dual-path optimization.
This header defines a lightweight, read-only, non-owning string view specifically designed for POD-compatible use cases, offering constexpr evaluation and optimized runtime behavior.
{ const char*, uint64_t } consteval) and runtime contexts memcmp / memcpy memcmp, not pointer identity consteval expressions immutable_str and POD containers std::string_view from_literal() or "..."_psv jh::meta::t_str)