FastLED 3.9.15
Loading...
Searching...
No Matches
pair.h
Go to the documentation of this file.
1#pragma once
2
3namespace fl {
4
5template <typename Key, typename Value> struct Pair {
7 Value second = Value();
8 Pair() = default;
9 Pair(const Key &k, const Value &v) : first(k), second(v) {}
10};
11
12// std compatibility
13template <typename Key, typename Value> using pair = Pair<Key, Value>;
14
15} // namespace fl
Pair< Key, Value > pair
Definition pair.h:13
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16
Definition Keyboard.h:22
Pair(const Key &k, const Value &v)
Definition pair.h:9
Pair()=default
Definition pair.h:5