Skip to content

Commit 962e25a

Browse files
authored
Merge pull request #583 from OpenVicProject/indexed-flat-map-empty
Add IndexedFlatMap empty function
2 parents 910afda + 0bec7c6 commit 962e25a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/openvic-simulation/types/IndexedFlatMap.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ namespace OpenVic {
524524
return keys.size();
525525
}
526526

527+
constexpr bool empty() const {
528+
return keys.empty();
529+
}
530+
527531
constexpr size_t get_min_index() const {
528532
return min_index;
529533
}

0 commit comments

Comments
 (0)