template<std::totally_ordered Key, size_t Size>
class CSet< Key, Size >
A constexpr set, like std::set but at compile time.
This class is designed to implement a constexpr version of std::set.
When using this class, "class template argument deduction" will figure out the type and size for you:
constexpr CSet magicNumber{5738, 573942, 5832};
A constexpr set, like std::set but at compile time.
Definition Set.h:43
If you want to force a type, but not the size, use the make_set helper function like:
consteval auto make_set(Key(&&k)[Size]) -> CSet< Key, Size >
Helper if the Key type of the CSet should be different than the provided values.
Definition Set.h:85
The elements in CSet need to be totally ordered, this allows for O(log n) complexity when looking up values.