MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / fill_2d

Function fill_2d

tests/DCPS/MetaStruct/MetaStructTest.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template<size_t N, size_t M>
118void fill_2d(short (&arr)[N][M])
119{
120 for (unsigned short i = 0; i < N; ++i) {
121 for (unsigned short j = 0; j < M; ++j) {
122 arr[i][j] = j + i * M;
123 }
124 }
125}
126
127
128template<typename Type>

Callers 1

run_test_iFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected