Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Set.h File Reference
#include <algorithm>
#include <array>
#include <concepts>
#include <initializer_list>
#include <iterator>
#include <ranges>
#include <stdexcept>

Classes

class  CSet< Key, Size >
 A constexpr set, like std::set but at compile time. More...
 

Functions

template<class T , class... U>
requires (... && std::convertible_to<U, T>)
 CSet (T, U...) -> CSet< T, 1+sizeof...(U)>
 
template<typename Key , std::size_t Size>
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.
 

Function Documentation

◆ CSet()

template<class T , class... U>
requires (... && std::convertible_to<U, T>)
CSet ( T ,
U...  ) -> CSet< T, 1+sizeof...(U)>

◆ make_set()

template<typename Key , std::size_t Size>
auto make_set ( Key(&&) k[Size]) -> CSet<Key, Size>
consteval

Helper if the Key type of the CSet should be different than the provided values.