16namespace data_structures
21namespace sequoia::maths::graph_impl
23 enum class index_type_tag { u_char, u_short, u_int, u_long};
25 template<std::
size_t Size, std::
size_t Order,
bool Embedded>
27 constexpr index_type_tag to_index_max() noexcept
29 if constexpr ((Order < 255) && (!Embedded || (Size < 255)))
return index_type_tag::u_char;
30 else if constexpr((Order < 65535) && (!Embedded || (Size < 65535)))
return index_type_tag::u_short;
31 else return index_type_tag::u_long;
39 index_type_tag=to_index_max<Size, Order, Embedded>()
43 using index_type = std::size_t;
54 using index_type =
unsigned char;
65 using index_type =
unsigned short;
Meta-programming elements for graph implementation.
Definition: StaticGraphDetails.hpp:18
Definition: StaticGraphDetails.hpp:42