MCPcopy Create free account
hub / github.com/acl-dev/acl / pfadd

Method pfadd

lib_acl_cpp/src/redis/redis_hyperloglog.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int redis_hyperloglog::pfadd(const char* key, const char* first_element, ...)
40{
41 std::vector<const char*> elements;
42 elements.push_back(first_element);
43
44 va_list ap;
45 va_start(ap, first_element);
46 const char* element;
47 while ((element = va_arg(ap, const char*)) != NULL)
48 elements.push_back(element);
49 va_end(ap);
50
51 return pfadd(key, elements);
52}
53
54int redis_hyperloglog::pfadd(const char* key,
55 const std::vector<const char*>& elements)

Callers 1

test_pfaddFunction · 0.80

Calls 2

buildFunction · 0.50
push_backMethod · 0.45

Tested by 1

test_pfaddFunction · 0.64