|
ChoreoLib
Choreo support library.
|
#include <choreo/util/Map.h>
Public Member Functions | |
| constexpr | Map (const std::array< std::pair< Key, Value >, Size > &data) |
| constexpr const Value & | at (const Key &key) const |
A compile-time associative container.
| Key | The key type. |
| Value | The value type. |
| Size | The number of elements in the container. |
|
inlineexplicitconstexpr |
Construct the map from an array of key-value pairs.
| data | The key-value pairs. |
|
inlineconstexpr |
Returns the value associated with the given key.
| key | The key. |
| std::range_error | if the key wasn't found. |