Skip to content

sgns::storage::face::Writeable

An mixin for modifiable map. More...

#include <writeable.hpp>

Inherited by sgns::storage::face::BatchWriteMap< Buffer, Buffer >, sgns::storage::face::GenericMap< Buffer, Buffer >, sgns::storage::face::WriteBatch< Buffer, Buffer >, sgns::storage::face::BatchWriteMap< K, V >, sgns::storage::face::GenericMap< K, V >, sgns::storage::face::WriteBatch< K, V >

Public Functions

Name
virtual ~Writeable() =default
virtual outcome::result< void > put(const K & key, const V & value) =0
Store value by key.
virtual outcome::result< void > put(const K & key, V && value) =0
virtual outcome::result< void > remove(const K & key) =0
Remove value by key.

Detailed Description

template <typename K ,
typename V >
struct sgns::storage::face::Writeable;

An mixin for modifiable map.

Template Parameters:

  • K key type
  • V value type

Public Functions Documentation

function ~Writeable

virtual ~Writeable() =default

function put

virtual outcome::result< void > put(
    const K & key,
    const V & value
) =0

Store value by key.

Parameters:

  • key key
  • value value

Return: result containing void if put successful, error otherwise

function put

virtual outcome::result< void > put(
    const K & key,
    V && value
) =0

function remove

virtual outcome::result< void > remove(
    const K & key
) =0

Remove value by key.

Parameters:

  • key K

Return: error code if error happened


Updated on 2026-06-05 at 17:22:18 -0700