MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / State

Class State

scintilla/lexlib/SparseState.h:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17template <typename T>
18class SparseState {
19 struct State {
20 int position;
21 T value;
22 State(int position_, T value_) : position(position_), value(value_) {
23 }
24 inline bool operator<(const State &other) const {
25 return position < other.position;
26 }
27 inline bool operator==(const State &other) const {
28 return (position == other.position) && (value == other.value);
29 }
30 };
31 int positionFirst;
32 typedef std::vector<State> stateVector;
33 stateVector states;

Callers 1

SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected