Skip to main content

detail Namespace

Definition

namespace simaai::neat::graphs::detail { ... }

Functions Index

voidrequire_unique_endpoint_name (std::unordered_set< std::string > *used, std::string_view name, const char *helper)

Functions

require_unique_endpoint_name()

void simaai::neat::graphs::detail::require_unique_endpoint_name (std::unordered_set< std::string > * used, std::string_view name, const char * helper)
inline

Definition at line 25 of file Fragments.h.

25inline void require_unique_endpoint_name(std::unordered_set<std::string>* used,
26 std::string_view name, const char* helper) {
27 if (!used) {
28 return;
29 }
30 if (name.empty()) {
31 throw std::runtime_error(std::string(helper) + ": endpoint name must not be empty");
32 }
33 if (!used->insert(std::string(name)).second) {
34 throw std::runtime_error(std::string(helper) + ": duplicate endpoint name '" +
35 std::string(name) + "'");
36 }
37}

The documentation for this namespace was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.