Skip to content

src/storage/face/readable.hpp

Namespaces

Name
sgns
sgns::storage
sgns::storage::face

Classes

Name
struct sgns::storage::face::Readable
A mixin for read-only map.

Source code

#ifndef SUPERGENIUS_READABLE_HPP
#define SUPERGENIUS_READABLE_HPP

#include "outcome/outcome.hpp"

namespace sgns::storage::face {

  template <typename K, typename V>
  struct Readable {
    virtual ~Readable() = default;

    virtual outcome::result<V> get(const K &key) const = 0;

    virtual bool contains(const K &key) const = 0;

    virtual bool empty() const = 0;
  };

}  // namespace sgns::storage::face

#endif  // SUPERGENIUS_WRITEABLE_KEY_VALUE_HPP

Updated on 2026-03-04 at 13:10:45 -0800