|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Zero-allocation hint registry with fixed capacity. More...
#include <unwind_hint.hpp>
Public Member Functions | |
| constexpr | unwind_hint_registry_context () noexcept=default |
| Constructs an empty registry. | |
| constexpr bool | add_hint (const unwind_hint &hint) noexcept |
| Appends a hint to the registry. | |
| constexpr bool | find_hint (uintptr_t pc, unwind_hint &out_hint) const noexcept |
| Linear scan for the hint covering a PC. | |
| constexpr size_t | size () const noexcept |
| Returns the number of stored hints. | |
Zero-allocation hint registry with fixed capacity.
| MaxHints | Maximum number of stored hints. |
|
constexprdefaultnoexcept |
Constructs an empty registry.
|
inlineconstexprnoexcept |
Appends a hint to the registry.
| hint | Hint to store. |
false when the registry is full.
|
inlineconstexprnoexcept |
Linear scan for the hint covering a PC.
| pc | PC being looked up. |
| out_hint | Receives the matching hint. |
true when a hint matched.
|
inlineconstexprnoexcept |
Returns the number of stored hints.