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

Method takeFirst

source/core/StarSet.hpp:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167template <typename BaseSet>
168auto SetMixin<BaseSet>::takeFirst() -> value_type {
169 if (Base::empty())
170 throw SetException("takeFirst called on empty set");
171 auto i = Base::begin();
172 value_type v = std::move(*i);
173 Base::erase(i);
174 return v;
175}
176
177template <typename BaseSet>
178auto SetMixin<BaseSet>::maybeTakeFirst() -> Maybe<value_type> {

Callers 15

playbackMethod · 0.45
parseABCMethod · 0.45
pullSingleMethod · 0.45
flushLiquidMethod · 0.45
buildDungeonMethod · 0.45
parseArgsFunction · 0.45
reserveBlockMethod · 0.45
doCommitMethod · 0.45
tickNetInterpolationMethod · 0.45
tickNetInterpolationMethod · 0.45

Calls 1

beginFunction · 0.85

Tested by 1

TESTFunction · 0.36