MCPcopy Create free account
hub / github.com/apache/trafficserver / car

Function car

plugins/experimental/txn_box/plugin/src/Extractor.cc:424–440  ·  view source on GitHub ↗

----

Source from the content-addressed store, hash-verified

422}
423// ----
424Feature
425car(Feature const &feature)
426{
427 switch (feature.index()) {
428 case IndexFor(CONS):
429 return std::get<IndexFor(CONS)>(feature)->_car;
430 case IndexFor(TUPLE):
431 return std::get<IndexFor(TUPLE)>(feature)[0];
432 case IndexFor(GENERIC): {
433 auto gf = std::get<IndexFor(GENERIC)>(feature);
434 if (gf) {
435 return gf->extract();
436 }
437 }
438 }
439 return feature;
440}
441// ----
442Feature &
443cdr(Feature &feature)

Callers 3

invokeMethod · 0.85
operator()Method · 0.85
popMethod · 0.85

Calls 3

IndexForFunction · 0.85
indexMethod · 0.80
extractMethod · 0.45

Tested by

no test coverage detected