|
CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
|
Miscellaneous utility functions and classes. More...
#include <cdefs.h>#include <limits>#include <stddef.h>#include <stdint.h>#include <type_traits>Go to the source code of this file.
Classes | |
| class | utils::NoCopyNoMove |
| Utility class to delete copy and move contructors. More... | |
| class | utils::OptionalReference< T > |
| A helper class modelled on std::optional that represents an optional T&. More... | |
Functions | |
| constexpr size_t | utils::bytes2bits (size_t in) |
| template<size_t N> | |
| constexpr size_t | utils::log2 () |
| template<> | |
| constexpr size_t | utils::log2< 1U > () |
| template<typename T, size_t N> | |
| constexpr size_t | utils::array_size (T(&a)[N]) |
Miscellaneous utility functions and classes.
Definition in file utils.hh.
|
constexpr |