|
sumty
0.1.0
Better sum types for C++
|
Utility to merge two error_set types. More...
#include <sumty/error_set.hpp>


Related Functions | |
(Note that these are not member functions.) | |
| template<typename ES1 , typename ES2 > | |
| using | merge_error_set_t = typename merge_error_set< ES1, ES2 >::type |
| Utility to merge two error_set types. More... | |
Utility to merge two error_set types.
merge_error_set combines the alternative types of two error_set instantiations into a single error_set instantiation. The two types may or may not have alternatives in common. Since error_set requires that there are no two alternatives with the same type, any alternatives common between the two error_set instantiations are deduplicated.
|
related |
Utility to merge two error_set types.
merge_error_set combines the alternative types of two error_set instantiations into a single error_set instantiation. The two types may or may not have alternatives in common. Since error_set requires that there are no two alternatives with the same type, any alternatives common between the two error_set instantiations are deduplicated.