8000 Replace occurrences of std::unordered_map<> with std::map<> · lava/matplotlib-cpp@9595628 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9595628

Browse files
mateogianoliolava
authored andcommitted
Replace occurrences of std::unordered_map<> with std::map<>
1 parent 823de00 commit 9595628

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

matplotlibcpp.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <iostream>
1010
#include <cstdint> // <cstdint> requires c++11 support
1111
#include <functional>
12-
#include <unordered_map>
1312

1413
#include <Python.h>
1514

@@ -793,7 +792,7 @@ template<typename NumericX, typename NumericY>
793792
bool scatter(const std::vector<NumericX>& x,
794793
const std::vector<NumericY>& y,
795794
const double s=1.0, // The marker size in points**2
796-
const std::unordered_map<std::string, std::string> & keywords = {})
795+
const std::map<std::string, std::string> & keywords = {})
797796
{
798797
assert(x.size() == y.size());
799798

@@ -823,7 +822,7 @@ bool scatter(const std::vector<NumericX>& x,
823822
template<typename Numeric>
824823
bool boxplot(const std::vector<std::vector<Numeric>>& data,
825824
const std::vector<std::string>& labels = {},
826-
const std::unordered_map<std::string, std::string> & keywords = {})
825+
const std::map<std::string, std::string> & keywords = {})
827826
{
828827
PyObject* listlist = detail::get_listlist(data);
829828
PyObject* args = PyTuple_New(1);
@@ -854,7 +853,7 @@ bool boxplot(const std::vector<std::vector<Numeric>>& data,
854853

855854
template<typename Numeric>
856855
bool boxplot(const std::vector<Numeric>& data,
857-
const std::unordered_map<std::string, std::string> & keywords = {})
856+
const std::map<std::string, std::string> & keywords = {})
858857
{
859858
PyObject* vector = detail::get_array(data);
860859
PyObject* args = PyTuple_New(1);

0 commit comments

Comments
 (0)
0