Allocation-free cleanup diagnostics in chronological order.
More...
#include <secure_string.hpp>
|
|
| SecureStringCleanupErrors ()=default |
| | Construct an empty diagnostic collection.
|
| | SecureStringCleanupErrors (std::optional< SecureStringError > failure) noexcept |
| | Construct from a possibly absent first failure.
|
| void | add (std::optional< SecureStringError > failure) noexcept |
| | Append an existing diagnostic without allocation; absent errors are ignored.
|
| void | append (const SecureStringCleanupErrors &other) noexcept |
| | Append retained failures and overflow counts from another collection.
|
| bool | empty () const noexcept |
|
|
std::array< SecureStringError, MAX_SECURE_CLEANUP_ERRORS > | errors {} |
| | First count errors, in actual cleanup order.
|
|
std::size_t | count {} |
| | Number of valid entries in errors.
|
|
std::size_t | omittedCleanupCount {} |
| | Additional failures omitted because the fixed buffer is full.
|
Allocation-free cleanup diagnostics in chronological order.
◆ SecureStringCleanupErrors()
| portals::SecureStringCleanupErrors::SecureStringCleanupErrors |
( |
std::optional< SecureStringError > | failure | ) |
|
|
inlinenoexcept |
Construct from a possibly absent first failure.
- Parameters
-
| failure | First cleanup error, or no error. |
◆ add()
| void portals::SecureStringCleanupErrors::add |
( |
std::optional< SecureStringError > | failure | ) |
|
|
inlinenoexcept |
Append an existing diagnostic without allocation; absent errors are ignored.
- Parameters
-
| failure | Error to retain or count after capacity is exhausted. |
◆ append()
Append retained failures and overflow counts from another collection.
- Parameters
-
| other | Valid source collection whose chronological records are copied. |
◆ empty()
| bool portals::SecureStringCleanupErrors::empty |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
- Returns
- True when neither retained nor omitted cleanup failures exist.
The documentation for this struct was generated from the following file: