MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / each_with

Method each_with

StereoKitC/libraries/array.h:153–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 void each (void (*e)(void *)) { for (int32_t i=0; i<count; i++) e(data[i]); }
152 template <typename U>
153 void each_with (U *with, void (*e)(U*, const T &)) const { for (int32_t i=0; i<count; i++) e(with, data[i]); }
154 template <typename U>
155 U each_with (void (*e)(U *, const T &)) const { U result = {}; for (int32_t i = 0; i < count; i++) e(&result, data[i]); }
156 template <typename U>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected