MCPcopy Create free account
hub / github.com/Gecode/gecode / operator +

Function operator +

gecode/kernel/data/array.hpp:1045–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043
1044 template<class Var>
1045 typename ArrayTraits<VarArray<Var>>::ArgsType
1046 operator +(const VarArray<Var>& x, const VarArray<Var>& y) {
1047 typename ArrayTraits<VarArray<Var>>::ArgsType r(x.size()+y.size());
1048 for (int i=0; i<x.size(); i++)
1049 r[i] = x[i];
1050 for (int i=0; i<y.size(); i++)
1051 r[x.size()+i] = y[i];
1052 return r;
1053 }
1054
1055 template<class Var>
1056 typename ArrayTraits<VarArray<Var>>::ArgsType

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected