Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Classes | Functions
Graph Constraint Error Types

Classes

struct  graphle::detail::all_constraints_satisfied
 
struct  graphle::detail::invalid_is_directed_value< T >
 
struct  graphle::detail::invalid_vertex_getter< Vertex, Get >
 
struct  graphle::detail::invalid_edge_getter< Vertex, Get >
 
struct  graphle::detail::invalid_in_edge_getter< Vertex, Get >
 
struct  graphle::detail::invalid_out_edge_getter< Vertex, Get >
 

Functions

template<typename Vertex , typename IsDirected , typename GetVertices , typename GetEdges , typename GetOutEdges , typename GetInEdges >
consteval auto graphle::detail::graph_constraints_check (void)
 

Detailed Description

Function Documentation

◆ graph_constraints_check()

template<typename Vertex , typename IsDirected , typename GetVertices , typename GetEdges , typename GetOutEdges , typename GetInEdges >
consteval auto graphle::detail::graph_constraints_check ( void  )

Checks the constraints for graph types and returns an error type if said constraints are not fulfilled. This is used to make the error part of the graph's type, as the compiler can't be bothered to say which constraint is not satisfied.

Unless GRAPHLE_NO_STATIC_ASSERT is defined, this method will trigger a static_assert if one of the constraint checks fails.

Returns
An instance of one of the following: all_constraints_satisfied invalid_is_directed_value<T> invalid_vertex_getter<Vertex, Getter>, invalid_edge_getter<Vertex, Getter>, invalid_in_edge_getter<Vertex, Getter>, invalid_out_edge_getter<Vertex, Getter>
Todo:
: While using the static_assert works for Clang, MSVC still refuses to actually tell us the full reason for the constraint failure here. Might be fixable by moving these asserts elsewhere because there are situations where it does give the full failure reason.

Definition at line 62 of file constraint_debug_helper.hpp.