Template Struct Overwrite

Struct Documentation

template<std::copy_constructible K, std::move_constructible V>
struct Overwrite

An update function for sharded maps which on update just overwrites the previousvalue.

Template Parameters:
  • K – The key type saved in the hash map.

  • V – The value type saved in the hash map.

Public Types

using InputValue = V

Public Static Functions

static inline void update(const K&, V &value, V &&input_value)

Upon inserting an existing value, overwrite it.

static inline V init(const K&, V &&input_value)

Upon inserting a new value, just insert that value.