
callonce wraps any C++ callable, executes it at most once per argument set, and caches what it returns. std::call_once with a return value, a reset, an argument-sensitive cache, and a choice of a zero-overhead or a lock-free policy. Header-only, MIT, C++20.