Counts the number of elements of t not equivalent to false.
#include <kumi/kumi.hpp>
#include <iostream>
#include <type_traits>
int main()
{
using namespace kumi::literals;
auto t =
kumi::record{
"a"_id = 1,
"b"_id = 0,
"c"_id = 2.,
"d"_id = nullptr
, "e"_id = 3.f, "f"_id = false, "g"_id = 'z'};
std::cout << std::boolalpha <<
kumi::count(t ) <<
"\n";
}
Fixed-size collection of heterogeneous fields necessarily named, names are unique.
Definition record.hpp:29