xieite ::type_list <Ts ...>::size
Defined in header <xieite/meta/type_list.hpp>
Stores the number of elements in a
xieite ::type_list {}
.Definition
template <auto cond >static constexpr bool size =sizeof... (Ts );
Example
Output:int main () {xieite ::dump (xieite ::type_list <>::size );xieite ::dump (xieite ::type_list <int >::size );xieite ::dump (xieite ::type_list <int ,int >::size );xieite ::dump (xieite ::type_list <int ,int ,int >::size ); }
[View in Compiler Explorer]0 1 2 3