6 #ifndef KAGOME_WRITEABLE_HPP 7 #define KAGOME_WRITEABLE_HPP 18 template <
typename K,
typename V>
28 virtual outcome::result<void>
put(
const K &key,
const V &value) = 0;
29 virtual outcome::result<void>
put(
const K &key, V &&value) = 0;
36 virtual outcome::result<void>
remove(
const K &key) = 0;
41 #endif // KAGOME_WRITEABLE_HPP
An mixin for modifiable map.
virtual ~Writeable()=default
virtual outcome::result< void > put(const K &key, const V &value)=0
Store value by key.