MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / select

Method select

utilities/olcUTIL_Container.h:106–109  ·  view source on GitHub ↗

Select item in container

Source from the content-addressed store, hash-verified

104
105 // Select item in container
106 void select(const size_t item)
107 {
108 m_nSelectedItem = std::clamp(item, size_t(0), this->size() - size_t(1));
109 }
110
111 // Move selected item positively
112 void move_up()

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected