| 2104 | |
| 2105 | template<class T> |
| 2106 | void resizeMulti(AnyValue& extra, size_t size, const AnyValue& value) |
| 2107 | { |
| 2108 | vector<T> defaultValue; |
| 2109 | if (value.is<void>()) { |
| 2110 | defaultValue = vector<T>(extra.matrixShape().second); |
| 2111 | } else { |
| 2112 | defaultValue = value.as<vector<T>>(); |
| 2113 | } |
| 2114 | extra.asVector<vector<T>>().resize(size, defaultValue); |
| 2115 | } |
| 2116 | |
| 2117 | template<class T> |
| 2118 | void resetSingle(AnyValue& extra, const vector<int>& slice) |
nothing calls this directly
no test coverage detected