GraphDom
Toggle main menu visibility
Loading...
Searching...
No Matches
custom_edge_endpoint_less.h
1
/*
2
* Copyright 2026 Michele Comparini
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H
8
#define GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H
9
10
#include "../../graph.h"
11
#include "../vertex_container.h"
12
#include "../edge_endpoint.h"
13
#include "../custom_edge_endpoint_less.h"
14
15
template
<
typename
VertexType>
16
template
<
typename
VertexContainerPo
int
erType>
17
bool
constexpr
graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
18
const
edge_endpoint<VertexContainerPointerType>*
const
left,
19
const
edge_endpoint<VertexContainerPointerType>*
const
right)
const
{
20
return
less_functor( left->vertex_container_ptr , right->vertex_container_ptr );
21
}
22
23
template
<
typename
VertexType>
24
template
<
typename
VertexContainerPo
int
erType>
25
bool
constexpr
graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
26
const
edge_endpoint<VertexContainerPointerType>*
const
left,
27
const
vertex_container*
const
right)
const
{
28
return
less_functor( left->vertex_container_ptr , right );
29
}
30
31
template
<
typename
VertexType>
32
template
<
typename
VertexContainerPo
int
erType>
33
bool
constexpr
graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
34
const
vertex_container*
const
left,
35
const
edge_endpoint<VertexContainerPointerType>*
const
right)
const
{
36
return
less_functor( left , right->vertex_container_ptr );
37
}
38
39
#endif
//GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H
include
graphdom
detail
impl
custom_edge_endpoint_less.h
Generated by
1.17.0