Skip to content
Snippets Groups Projects

ENH: Add retrieval and queries to Extern C interface

Merged Florian Spreckelsen requested to merge f-extended-c into f-files
2 unresolved threads
1 file
+ 0
20
Compare changes
  • Side-by-side
  • Inline
+ 0
20
@@ -133,26 +133,6 @@ protected:
// shift all indices in the cache above index (such that the values do not
// get deleted/copied because this could destroy pointers (c-interface).
// auto next = cache.begin();
// while(next != cache.end()) {
// auto cached = *next;
// if(cached.first > index) {
// std::make_pair<int, T>(cached.first-1,
//}
// cached.first
// next = std::next(next);
//}
// for(auto &cached : cache) {
// if(cached.first > index) {
// cached.first--;
//}
//}
// for(int i = index + 1; i < Size(); i++) {
// if(cache.count(i)>0) {
// cache.at(i).wrapped = &(this->wrapped->at(i));
//}
//}
for (int i = index + 1; i < Size(); i++) {
if (cache.count(i) > 0) {
auto handle = cache.extract(i);
Loading