MCPcopy Create free account
hub / github.com/citp/BlockSci / getGenericRange

Method getGenericRange

blockscipy/src/generic_proxy.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::function<BlocksciRangeType(std::any &)> SimpleProxy::getGenericRange() const {
51 return [generic = getGenericSimple()](std::any &v) -> BlocksciRangeType {
52 return mpark::visit([](auto && val) -> BlocksciRangeType {
53 return BlocksciRangeType{RawRange<std::decay_t<decltype(val)>>{ranges::views::single(std::forward<decltype(val)>(val))}};
54 }, generic(v).var);
55 };
56}
57
58std::function<BlocksciType(std::any &)> ProxyAddress::getGenericSimple() const {
59 return [generic = getGenericScript()](std::any &val) -> BlocksciType {

Callers

nothing calls this directly

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected