Move-only credit; backing storage must be destroyed before this final credit owner.
More...
#include <source_budget.hpp>
Move-only credit; backing storage must be destroyed before this final credit owner.
◆ SourceCredit()
| portals::SourceCredit::SourceCredit |
( |
SourceCredit && | other | ) |
|
|
noexcept |
- Parameters
-
| other | Credit to transfer without allocation and leave empty. |
◆ operator=()
- Parameters
-
| other | Credit replacing this reservation. |
- Returns
- This owner; old credit is released after replacement.
◆ split()
- Parameters
-
| amount | Sub-reservation to transfer; each field must fit this credit. |
- Returns
- Independent credit on the same root, or INVALID_ARGUMENT without mutation.
◆ usage()
- Returns
- This owner's reservation, not aggregate usage.
The documentation for this class was generated from the following file: