summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-06-15 02:16:08 +0300
committerbabenko <[email protected]>2026-06-15 02:36:20 +0300
commitf8cd3660cc9c26e7dcbc92b9c226dece12649d90 (patch)
tree9bef51d3e6dc5acdff3c2476b5660d0aeec7fc3f /contrib/python
parent972b95687df432234ca66ad90d59ac74ae6048e3 (diff)
Add YT_DEFINE_SENTINEL_OPTIONAL macro
Add a macro for defining `TSentinelOptional` type aliases when the value type is not structural (e.g. has protected members) and therefore cannot use `TValueSentinel<V>`. The macro collapses the boilerplate sentinel struct plus `using` declaration into a single line: ```cpp // before struct TInstantSentinel { static constexpr auto Sentinel = TInstant::Zero(); }; using TSentinelOptionalInstant = TSentinelOptional<TInstant, TInstantSentinel>; // after YT_DEFINE_SENTINEL_OPTIONAL(TSentinelOptionalInstant, TInstant, TInstant::Zero()); ``` Also convert the existing call sites in `service_detail.cpp` and `inferrum/block_cache.cpp`. commit_hash:5dcdeb8db215736b0ce5a5b71f30aead91c7b8e8
Diffstat (limited to 'contrib/python')
0 files changed, 0 insertions, 0 deletions