Template Struct Keep

Struct Documentation

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

An update function for sharded maps which upon update does nothing. If the value does not exist, the value is inserted.

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&, V&&)

Upon inserting an existing value, we do nothing.

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

Upon inserting a new value, just insert that value.