Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Coord Concept Reference

A coordinate type with N integral components. More...

#include <tpl_ca_concepts.H>

Concept definition

template<typename C, std::size_t N>
concept Aleph::CA::Coord = std::regular<C> and requires(C c, std::size_t i) {
{ c[i] } -> std::convertible_to<ca_index_t>;
{ C{}.size() } -> std::convertible_to<std::size_t>;
} and (std::tuple_size<C>::value == N)
A coordinate type with N integral components.
#define N
Definition fib.C:294
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

A coordinate type with N integral components.

The CA module manipulates coordinates as fixed-size random-access containers (std::array<index_t, N> is the canonical choice). A coordinate must expose operator[] and a compile-time size().

Template Parameters
Ccoordinate type.
Nexpected dimension.

Definition at line 91 of file tpl_ca_concepts.H.