xieite ::type_list <Ts ...>::satisfies <>
Defined in header <xieite/meta/type_list.hpp>
Checks if
Ts
satisfy some functor.Definition
template <auto pred >static constexpr bool satisfies =xieite ::is_satisfied <pred ,Ts ...>;
Example
Output:int main () {using List =xieite ::type_list <int ,int ,int ,int ,int >;// Check if all elements are the same xieite ::dump (List ::satisfies <[]<typename T ,std ::same_as <T >... > {}>); }
[View in Compiler Explorer]true