16 using ShPtr = std::shared_ptr<T>;
21 using Str = std::string;
27 using Vec = std::vector<T>;
29 #include <unordered_map> 37 template <
typename T,
typename U>
38 using Map = std::unordered_map<T,U>;
40 #include <unordered_set> 49 using Set = std::unordered_set<T>;
std::string Str
Str is an alias for string.
std::unordered_set< T > Set
Set is an alias for unordered set (same as set in Python).
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
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).