unique.hpp

Methods to generate UIDs.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2016-2020 Michigan State University MIT Software license; see doc/LICENSE.md

Defines

INCLUDE_EMP_TOOLS_UNIQUE_HPP_GUARD

Functions

static size_t UniqueVal()

A function that will always return a unique value (and trip an assert if it can’t…)

static inline std::string UniqueName(const std::string &prefix = "", const std::string &suffix = "")

A function that will always return a unique string (using UniqVal) with provided prefix and name.)