MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator[]

Method operator[]

tests/ClassOperatorHandler9Test.cpp:27–27  ·  view source on GitHub ↗

index operators

Source from the content-addressed store, hash-verified

25
26 // index operators
27 T operator[](const std::size_t i) const { return v[i]; }
28
29 T& operator[](const std::size_t i) { return v[i]; }
30};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected