koutil
Loading...
Searching...
No Matches
comptime_map.h File Reference
#include <algorithm>
#include <array>
#include <cassert>
#include <cstddef>
#include <limits>
#include <utility>

Go to the source code of this file.

Classes

class  koutil::container::ComptimeMap< Key, Value, Size >
 A compile-time map implementation. More...
 

Namespaces

namespace  koutil
 
namespace  koutil::container
 

Functions

template<typename Key , typename Value , std::size_t Size>
consteval ComptimeMap< Key, Value, Size > koutil::container::to_map (std::array< std::pair< Key, Value >, Size > pairs)
 Converts an array of pairs to a compile-time map.
 
template<typename Key , typename Value , std::size_t Size>
consteval ComptimeMap< Key, Value, Size > koutil::container::to_map (std::pair< Key, Value >(&&pairs)[Size])
 Converts an array of pairs to a compile-time map.