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

Method maybeFirst

source/core/StarSet.hpp:161–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160template <typename BaseSet>
161auto SetMixin<BaseSet>::maybeFirst() -> Maybe<value_type> {
162 if (Base::empty())
163 return {};
164 return *Base::begin();
165}
166
167template <typename BaseSet>
168auto SetMixin<BaseSet>::takeFirst() -> value_type {

Callers 4

renderMethod · 0.45
updateMethod · 0.45
mainFunction · 0.45

Calls 1

beginFunction · 0.85

Tested by

no test coverage detected