MCPcopy Create free account
hub / github.com/Gecode/gecode / init

Method init

gecode/iter/values-minus.hpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 template<class I>
75 void
76 Minus::init(Region& r, I& i) {
77 ValueListIter::init(r);
78 ValueList* p = nullptr;
79 for (; i(); ++i) {
80 ValueList* t = new (*vlio) ValueList;
81 t->next = p;
82 t->val = -i.val();
83 p = t;
84 }
85 ValueListIter::set(p);
86 }
87
88 template<class I>
89 forceinline

Callers

nothing calls this directly

Calls 2

iFunction · 0.70
valMethod · 0.45

Tested by

no test coverage detected