49#include <forward_list>
51#include <initializer_list>
64#include <unordered_map>
65#include <unordered_set>
113 template<
class T>
class Shared;
118 template<
class T>
class Unique;
123 template<
class T>
class Weak;
143 template<Type::Arithmetic T>
struct IsSafe<T>: std::true_type {};
148 template<Type::Enum T>
struct IsSafe<T>: std::true_type {};
161 template<>
struct IsSafe<
Safe::SecureBinary>: std::true_type {};
182 template<
typename T>
struct IsSafe<
Safe::Shared<T>>: std::bool_constant<IsSafe<std::remove_cvref_t<T>>::value> {};
187 template<
typename T>
struct IsSafe<
Safe::Unique<T>>: std::bool_constant<IsSafe<std::remove_cvref_t<T>>::value> {};
192 template<
typename T>
struct IsSafe<
Safe::Weak<T>>: std::bool_constant<IsSafe<std::remove_cvref_t<T>>::value> {};
209 template<
typename T,
typename Traits,
typename Allocator>
211 template<
typename T,
typename Traits>
214 template<
typename T,
typename Allocator>
struct IsKnownNeverSafe<
std::vector<T, Allocator>>: std::true_type {};
215 template<
typename T,
typename Allocator>
struct IsKnownNeverSafe<
std::deque<T, Allocator>>: std::true_type {};
216 template<
typename T,
typename Allocator>
struct IsKnownNeverSafe<
std::list<T, Allocator>>: std::true_type {};
217 template<
typename T,
typename Allocator>
struct IsKnownNeverSafe<
std::forward_list<T, Allocator>>: std::true_type {};
218 template<
typename K,
typename V,
typename Compare,
typename Allocator>
220 template<
typename K,
typename V,
typename Compare,
typename Allocator>
222 template<
typename K,
typename Compare,
typename Allocator>
224 template<
typename K,
typename Compare,
typename Allocator>
226 template<
typename K,
typename V,
typename Hash,
typename Equal,
typename Allocator>
228 template<
typename K,
typename V,
typename Hash,
typename Equal,
typename Allocator>
230 template<
typename K,
typename Hash,
typename Equal,
typename Allocator>
232 template<
typename K,
typename Hash,
typename Equal,
typename Allocator>
234 template<
typename T,
typename Container>
236 template<
typename T,
typename Container,
typename Compare>
238 template<
typename T,
typename Container>
246 template<
typename T, std::
size_t Extent>
struct IsKnownNeverSafe<
std::span<T, Extent>>: std::true_type {};
250 template<
typename T,
typename Deleter>
struct IsKnownNeverSafe<
std::unique_ptr<T, Deleter>>: std::true_type {};
269 requires requires {
sizeof(T); } && DerivedFrom<T, StormByte::Exception> && (!SameAs<T, StormByte::Exception>)
277 IsMaybeSafe<std::remove_cvref_t<T>>::value && !Detail::IsKnownNeverSafe<std::remove_cvref_t<T>>::value
285 IsMaybeSafe<std::remove_cvref_t<T>>::value && !Detail::IsKnownNeverSafe<std::remove_cvref_t<T>>::value
293 IsMaybeSafe<std::remove_cvref_t<T>>::value && !Detail::IsKnownNeverSafe<std::remove_cvref_t<T>>::value
319 template<
typename T,
typename E>
384 template<Type::Enum T>
390 template<Type::Arithmetic T>
400 concept SafeCursor =
requires {
typename std::remove_cvref_t<T>::StormByteSafeCursor; };
425#define STORMBYTE_DECLARE_MAYBE_SAFE(SafeType) \
426 template<> struct StormByte::Type::IsMaybeSafe<SafeType>: std::true_type {}
Count of octets (uint64_t storage).
Definition byte_size.hxx:105
Base exception type for the suite.
Definition exception.hxx:67
Owned contiguous sequence of std::byte, stored in a Vector.
Definition binary.hxx:79
Binary for secrets: every byte it drops or releases is zeroed first.
Definition secure_binary.hxx:74
Forward declaration of shared ownership.
Definition pointers.hxx:133
Owned UTF-8 text.
Definition string.hxx:113
Forward declaration of unique ownership.
Definition pointers.hxx:343
Wide counterpart of String.
Definition wstring.hxx:104
Forward declaration of weak ownership.
Definition pointers.hxx:485
Count of abstract units (uint64_t storage).
Definition size.hxx:107
Both StormByte::Type::CopyConstructible and StormByte::Type::CopyAssignable.
Definition object_semantics.hxx:304
Type constructible from an empty initializer (T{} / T()).
Definition object_semantics.hxx:156
Recognizes a conditional Safe component after stripping cv and references.
Definition safe.hxx:301
Type that can be move-assigned (operator=(T&&)).
Definition object_semantics.hxx:273
Type that can be move-constructed.
Definition object_semantics.hxx:213
Recognized Safe component after stripping cv and references.
Definition safe.hxx:311
Recognizes a cursor that stores only a Base node pointer.
Definition safe.hxx:400
Value permitted in opaque Safe collections.
Definition safe.hxx:409
Text string types that are not generic containers.
Definition containers.hxx:106
Owned values that cross a DLL without the caller's CRT.
Named concepts and small type utilities used across the suite.
Root namespace of the StormByte suite.
Identifies standard-library ownership and view wrappers that Base will not admit.
Definition safe.hxx:204
Recognizes types whose DLL-boundary safety depends on documented provider requirements.
Definition safe.hxx:262
Identifies Safe optional wrappers.
Definition safe.hxx:329
Identifies Safe FIFO wrappers.
Definition safe.hxx:337
Recognizes collection values with Base-controlled lifetime.
Definition safe.hxx:347
Recognizes Base Safe components, not universal ABI compatibility.
Definition safe.hxx:138