30#include <seastar/util/modules.hh>
38template <
typename Value,
size_t Max>
40 std::array<Value, Max> _a {};
42 array_map(std::initializer_list<std::pair<size_t, Value>> i) {
44 _a[kv.first] = kv.second;
47 Value& operator[](
size_t key) {
return _a[key]; }
48 const Value& operator[](
size_t key)
const {
return _a[key]; }
50 Value& at(
size_t key) {
52 throw std::out_of_range(std::to_string(key) +
" >= " + std::to_string(Max));
Definition: array_map.hh:39
Seastar API namespace.
Definition: abort_on_ebadf.hh:26