xieite::type_list<Ts...>::size

Defined in fragment xieite:type_list
(header-only: <xieite/meta/type_list.hpp>)


Stores the number of elements of its containing xieite::type_list.


Definition

template<auto cond>
static constexpr bool size = sizeof...(Ts);


Example

import std;
import xieite;

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);
}
Output:
0
1
2
3