MCPcopy Create free account
hub / github.com/compilets/compilets / push

Method push

cpp/runtime/array.h:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181 template<typename... Args>
182 double push(Args&&... args) {
183 if constexpr (std::is_arithmetic_v<T>)
184 (arr_.push_back(static_cast<T>(args)), ...);
185 else
186 (arr_.push_back(std::forward<Args>(args)), ...);
187 length = static_cast<double>(arr_.size());
188 return length;
189 }
190
191 Array<T>* reverse() {
192 std::reverse(arr_.begin(), arr_.end());

Callers 15

TEST_FFunction · 0.80
visitFunction · 0.80
mergeTypesFunction · 0.80
createTraceMethodFunction · 0.80
printMethod · 0.80
constructorMethod · 0.80
gnGenFunction · 0.80
getModifiersMethod · 0.80
printDeclarationMethod · 0.80
createConstructorMethod · 0.80
registerMethod · 0.80
parseExpressionMethod · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64