summaryrefslogtreecommitdiff
path: root/AK/Concepts.h
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2021-01-01 03:39:04 -0700
committerAndreas Kling <kling@serenityos.org>2021-01-01 23:01:48 +0100
commit986544600a94d0e3ae04cf253ad27b696961f142 (patch)
treecd3905203ad232664506ab688f910040177101ce /AK/Concepts.h
parent7b94ca21b3e99baa5102a0d069a1f637dff5ffd6 (diff)
downloadserenity-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