Skip to content

sgns::OutPointHash

Hash functor for using OutPoint keys in unordered containers.

#include <UTXOManager.hpp>

Public Functions

Name
size_t operator()(const OutPoint & outpoint) const
Computes a combined hash for a transaction id and output index pair.

Public Functions Documentation

function operator()

inline size_t operator()(
    const OutPoint & outpoint
) const

Computes a combined hash for a transaction id and output index pair.

Parameters:

  • outpoint The OutPoint to hash, containing a transaction id and output index.

Return: Size of the combined hash


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