CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
ds::linked_list::cell::HasReset Concept Reference

Reset a cell to a singleton ring. More...

#include <linked_list.h>

Concept definition

template<typename T>
concept HasReset = requires(T &t) {
{ t.cell_reset() } -> std::same_as<void>;
}
Reset a cell to a singleton ring.
Definition linked_list.h:46

Detailed Description

Reset a cell to a singleton ring.

Not all cons cells are required to be able to do this, though if you're sticking to rings and not (ab)using the machinery here in interesting ways, this should be easy to specify.

This is a method, and not a constructor, to handle cases where the cell is also packing other state into its representation.

Definition at line 46 of file linked_list.h.