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:
constexpr auto mySet = make_set<std::string_view>({"one", "two", "three"});
The elements in CSet need to be totally ordered, this allows for O(log n) complexity when looking up values.