MCPcopy Create free account
hub / github.com/activeloopai/deeplake / begin

Method begin

cpp/icm/flat_iterator.hpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 using iterator_category = std::random_access_iterator_tag;
28
29 static flat_iterator begin(const std::vector<C>& containers, const std::vector<value_type>& offsets)
30 {
31 if (containers.empty()) {
32 return flat_iterator();
33 }
34 return flat_iterator(containers, offsets, containers.begin(), containers.begin()->begin());
35 }
36
37 static flat_iterator end(const std::vector<C>& containers, const std::vector<value_type>& offsets)
38 {

Callers 3

flat_iteratorClass · 0.45
operator-Method · 0.45
skip_empty_containersMethod · 0.45

Calls 2

flat_iteratorClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected