diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2021-01-01 03:39:04 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 23:01:48 +0100 |
commit | 986544600a94d0e3ae04cf253ad27b696961f142 (patch) | |
tree | cd3905203ad232664506ab688f910040177101ce /AK/Concepts.h | |
parent | 7b94ca21b3e99baa5102a0d069a1f637dff5ffd6 (diff) | |
download | serenity-986544600a94d0e3ae04cf253ad27b696961f142.zip |
AK: Add Result<void, ErrorType> specialization, cleanup
Add a specialization for a void ValueType. This is useful if a generic
function wants to return a Result<T, E> where the user might not
actually care abut the T, and default it to void. In this case it
basically becomes Unexpected<E> instead of Result, but hey, it works :)
Diffstat (limited to 'AK/Concepts.h')
0 files changed, 0 insertions, 0 deletions