Struct CellRegistry::Slot

Nested Relationships

This struct is a nested type of Class CellRegistry.

Struct Documentation

struct Slot

Public Members

ResultPtr value
bool filled_since_clear = false

Fill-once tripwire: true once value has been set() since the last time this slot was emptied (by clear_bound_to, take or release). See set.

std::size_t charged_bytes = 0

What value was charged to live_bytes_ when it was stored. A held result’s size may change while held (a pending view materializes when a reader asks for its value), so releasing it must give back what was charged, not what it measures now.