Skip to content

Commit c7ebb08

Browse files
committed
Fixed map example compilation
1 parent b318cab commit c7ebb08

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

examples/small_map/small_map.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#include <SmallMap.h>
22
#include <Arduino.h>
33

4-
SmallMap<int, int, 3> map{{1, 2}, {3, 4}, {5, 6}};
4+
SmallMap<int, int, 3> m{{1, 2}, {3, 4}, {5, 6}};
55

66
void setup() {
77
Serial.begin(115200);
88
while (not Serial);
99

10-
for (const auto& el : map)
10+
for (const auto& el : m)
1111
Serial.println(el.first);
1212

13-
auto found = map.find(3);
14-
if (found != map.end())
13+
auto found = m.find(3);
14+
if (found != m.end())
1515
Serial.println(found->second);
1616
}
1717

keywords.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
PairArray KEYWORD1
33
SmallVector KEYWORD1
44
SmallMap KEYWORD1
5+
SmallQueue KEYWORD1
56

67
# Methods and Functions (KEYWORD2)
78
countSize KEYWORD2

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ArrayUtils",
3-
"version": "1.3.6",
3+
"version": "1.3.7",
44
"description": "Helps to create complex arrays and maps as arrays of pairs",
55
"keywords": "array, map, vector, queue, pair",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=vovagorodok_ArrayUtils
2-
version=1.3.6
2+
version=1.3.7
33
author=vovagorodok
44
maintainer=vovagorodok <vovagorodok2@gmail.com>
55
sentence=Helps to create complex arrays and maps as arrays of pairs

0 commit comments

Comments
 (0)