|
sumty
0.1.0
Better sum types for C++
|
Utility to test that one error_set is a subset of another. More...
#include <sumty/error_set.hpp>


Related Functions | |
(Note that these are not member functions.) | |
| template<typename ES1 , typename ES2 > | |
| static constexpr bool | is_subset_of_v = is_subset_of<ES1, ES2>::value |
| Utility to test that one error_set is a subset of another. More... | |
Utility to test that one error_set is a subset of another.
This type is a template metaprogramming utility to test that the error_set ES1 is a subset of the error_set ES2. If every alternative of ES1 is an alternative of ES2, regardless of order or index, then ES1 is a subset of ES2. The static member constant value is a bool that is true if ES1 is a subset of ES2.
| ES1 | The proposed subset |
| ES2 | The proposed superset |
|
related |
Utility to test that one error_set is a subset of another.
This is a template metaprogramming utility to test that the error_set, ES1, is a subset of the error_set ES2. If every alternative of ES1 is an alternative of ES2, regardless of order or index, then ES1 is a subset of ES2.
| ES1 | The proposed subset |
| ES2 | The proposed superset |