MCPcopy Create free account
hub / github.com/Neargye/magic_enum / at

Method at

include/magic_enum/magic_enum_containers.hpp:355–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 using const_reverse_iterator = typename container_type::const_reverse_iterator;
354
355 constexpr reference at(E pos) {
356 if (auto index = index_type::at(pos)) {
357 return a[*index];
358 }
359 MAGIC_ENUM_THROW(std::out_of_range("magic_enum::containers::array::at Unrecognized position"));
360 }
361
362 constexpr const_reference at(E pos) const {
363 if (auto index = index_type::at(pos)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected