ppap4lmp  0.7.2
std.h
Go to the documentation of this file.
1 
9 #ifndef ALIAS_STD_H
10 #define ALIAS_STD_H
11 
12 #include <memory>
13 
15 template <typename T>
16 using ShPtr = std::shared_ptr<T>;
17 
18 #include <string>
19 
21 using Str = std::string;
22 
23 #include <vector>
24 
26 template <typename T>
27 using Vec = std::vector<T>;
28 
29 #include <unordered_map>
30 
37 template <typename T, typename U>
38 using Map = std::unordered_map<T,U>;
39 
40 #include <unordered_set>
41 
48 template <typename T>
49 using Set = std::unordered_set<T>;
50 
51 #ifdef ALIAS_PYBIND_H
52 #include <alias/pybind_std.h>
53 #endif
54 
55 #endif
std::string Str
Str is an alias for string.
Definition: std.h:21
std::unordered_set< T > Set
Set is an alias for unordered set (same as set in Python).
Definition: std.h:49
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16
To bind C++ Standard Template Library to Python, pybind11 needs to include an additional header...
std::unordered_map< T, U > Map
Map is an alias for unordered map (same as dict in Python).
Definition: std.h:38