MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / push

Method push

highs/util/HighsDataStack.h:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 template <typename T,
35 typename std::enable_if<IS_TRIVIALLY_COPYABLE(T), int>::type = 0>
36 void push(const T& r) {
37 std::size_t dataSize = data.size();
38 data.resize(dataSize + sizeof(T));
39 std::memcpy(data.data() + dataSize, &r, sizeof(T));
40 }
41
42 template <typename T,
43 typename std::enable_if<IS_TRIVIALLY_COPYABLE(T), int>::type = 0>

Callers 6

pushWorkMethod · 0.45
afterRelaxSnMethod · 0.45
dfsPostorderFunction · 0.45
unlinkMethod · 0.45
unlinkMethod · 0.45
CapturerMethod · 0.45

Calls 4

dataMethod · 0.80
sizeMethod · 0.45
resizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected