GraphLib
Bearbeitung der Aufgabe Mini Graph Library für OOP WiSe 2023/24
Loading...
Searching...
No Matches
GraphLib::Internal::valid_weight_type Concept Reference

Concept for a valid edge weight type. More...

#include <concepts.h>

Concept definition

template<typename T>
concept GraphLib::Internal::valid_weight_type = std::totally_ordered<T> && std::is_default_constructible_v<T> && is_printable<T> &&
std::numeric_limits<T>::has_infinity == true
Checks whether a type supports streaming to std::ostream.
Definition concepts.h:32
Concept for a valid edge weight type.
Definition concepts.h:76

Detailed Description

Concept for a valid edge weight type.

Requirements:

  • Totally ordered
  • Default-constructible
  • Printable to std::ostream
  • Must support infinity (e.g. std::numeric_limits<T>::has_infinity == true)
Template Parameters
TWeight type.

Definition at line 76 of file concepts.h.