Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Namespaces | Concepts | Macros
graph_concepts.hpp File Reference
#include <common.hpp>
#include <meta/value.hpp>
#include <ranges>
#include <concepts>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  graphle
 

Concepts

concept  graphle::vertex_getter
 
concept  graphle::edge_getter
 
concept  graphle::vertex_edge_getter
 
concept  graphle::vertex_value_getter
 
concept  graphle::edge_value_getter
 
concept  graphle::graph_value_getter
 
concept  graphle::maybe_vertex_getter
 
concept  graphle::maybe_edge_getter
 
concept  graphle::maybe_vertex_edge_getter
 
concept  graphle::maybe_vertex_value_getter
 
concept  graphle::maybe_edge_value_getter
 
concept  graphle::maybe_graph_value_getter
 

Macros

#define GRAPHLE_MAYBE_CONCEPT_1(Name)   template <typename F, typename T1> concept maybe_##Name = graphle::meta::is_none_v<F> || Name<F, T1>
 
#define GRAPHLE_MAYBE_CONCEPT_2(Name)   template <typename F, typename T1, typename T2> concept maybe_##Name = graphle::meta::is_none_v<F> || Name<F, T1, T2>
 

Macro Definition Documentation

◆ GRAPHLE_MAYBE_CONCEPT_1

#define GRAPHLE_MAYBE_CONCEPT_1 (   Name)    template <typename F, typename T1> concept maybe_##Name = graphle::meta::is_none_v<F> || Name<F, T1>

Generates a wrapper concept for the given 1-argument concept that also matches meta::none.

Definition at line 15 of file graph_concepts.hpp.

◆ GRAPHLE_MAYBE_CONCEPT_2

#define GRAPHLE_MAYBE_CONCEPT_2 (   Name)    template <typename F, typename T1, typename T2> concept maybe_##Name = graphle::meta::is_none_v<F> || Name<F, T1, T2>

Generates a wrapper concept for the given 2-argument concept that also matches meta::none.

Definition at line 22 of file graph_concepts.hpp.