ppap4lmp  0.7.2
map_to_index.h
Go to the documentation of this file.
1 
8 #ifndef UTILS_MAP_TO_INDEX_H
9 #define UTILS_MAP_TO_INDEX_H
10 
11 #include <alias/std.h>
12 #include <alias/json.h>
13 
15 namespace utils
16 {
34  const Json &data,
35  const Str &key);
36 }
37 
38 #endif
std::string Str
Str is an alias for string.
Definition: std.h:21
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
This file includes nlohmann/json and defines an alias for a JSON class.
This file includes a part of C++ Standard Template Library and defines aliases for them...
Namespace for utility functions.
Definition: join.h:14
std::unordered_map< T, U > Map
Map is an alias for unordered map (same as dict in Python).
Definition: std.h:38
Map< Json, int > map_to_index(const Json &data, const Str &key)
Create a Map object from values of selected property in an array Json object to corresponding index i...