flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 12:33:40 -05:00
commit 01b201f035
51 changed files with 11519 additions and 0 deletions

25
tjp/core/io/OptionalIO.h Normal file
View File

@@ -0,0 +1,25 @@
// License: Modified MIT (NON-AI)
// See the LICENSE file in the root directory for license information.
// Copyright 2025 Timothy Prepscius
#pragma once
namespace tjp::core::io {
template<typename T>
struct OptionalIO
{
T &v;
bool write;
} ;
template<typename T>
OptionalIO<T> optional(T &t, bool write=true) { return OptionalIO<T> { t, write }; }
template<typename IO, typename T>
void io_(IO &io, OptionalIO<T> &t)
{
static_assert(always_false<T>::value, "this should not be dispatched to");
}
} // namespace