MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / indexOf

Function indexOf

source/core/StarFormattedJson.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135template <class ElementType>
136FormattedJson::ElementLocation indexOf(FormattedJson::ElementList const& elements, FormattedJson::ElementLocation pos) {
137 for (; pos < elements.size(); ++pos) {
138 if (elements[pos].is<ElementType>())
139 return pos;
140 }
141 return NPos;
142}
143
144template <class ElementType>
145FormattedJson::ElementLocation lastIndexOf(

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected