◆ add()
Add a resource item to the list.
This function should be used to initialize a static global variable which will modify the static_resource_list.
Example:
constexpr Out narrow_cast(In rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:170
Definition static_resource_list.hpp:23
static hi_no_inline static_resource_item const * add(static_resource_item *new_item) noexcept
Add a resource item to the list.
Definition static_resource_list.hpp:54
- Parameters
-
| new_item | A pointer to the new item to be added to the list. |
- Returns
- A pointer to the previous item, should be stored into a static global variable.
◆ find()
Search for a static resource item.
- Parameters
-
| filename | The filename of the resource to search for. |
- Returns
- A byte-span, or an empty byte-span when not found.
The documentation for this struct was generated from the following file: