Skip to content
Welcome to the new CppUtils documentation!
using CppUtils::Container::DependencyGraph<Key, Value>::KeyType = Key;
using CppUtils::Container::DependencyGraph<Key, Value>::ValueType = Value;
std::unordered_map<Key, Node> nodes;
[[nodiscard]] auto DependencyGraph::contains(const Key& key) const noexcept -> bool;
auto DependencyGraph::insert(const Key& key, Value&& value) -> void;
auto DependencyGraph::remove(const Key& key) -> void;
[[nodiscard]] auto DependencyGraph::operator[](this auto&& self [[clang::lifetimebound, msvc::lifetimebound]], const Key& key) -> decltype(auto);
auto DependencyGraph::addDependency(const Key& key, const Key& dependency) -> void;
auto DependencyGraph::removeDependency(const Key& key, const Key& dependency) -> void;
[[nodiscard]] auto DependencyGraph::getDependencies(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]], const Key& key) -> decltype(auto);
[[nodiscard]] auto DependencyGraph::hasCycle() -> bool;
auto DependencyGraph::forEach(auto&& function) -> std::expected<bool, std::string>;