ppap4lmp  0.7.2
std.h File Reference

This file includes a part of C++ Standard Template Library and defines aliases for them. More...

#include <memory>
#include <string>
#include <vector>
#include <unordered_map>
#include <unordered_set>
Include dependency graph for std.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

template<typename T >
using ShPtr = std::shared_ptr< T >
 ShPtr is an alias for shared pointer.
 
using Str = std::string
 Str is an alias for string.
 
template<typename T >
using Vec = std::vector< T >
 Vec is an alias for vector (same as list in Python).
 
template<typename T , typename U >
using Map = std::unordered_map< T, U >
 Map is an alias for unordered map (same as dict in Python). More...
 
template<typename T >
using Set = std::unordered_set< T >
 Set is an alias for unordered set (same as set in Python). More...
 

Detailed Description

This file includes a part of C++ Standard Template Library and defines aliases for them.

Author
Takayuki Kobayashi
Date
2018/09/09

Definition in file std.h.

Typedef Documentation

◆ Map

template<typename T , typename U >
using Map = std::unordered_map<T,U>

Map is an alias for unordered map (same as dict in Python).

Searching an item from unordered map takes shorter time than doing the same thing with ordered map (std::map).

Definition at line 38 of file std.h.

◆ Set

template<typename T >
using Set = std::unordered_set<T>

Set is an alias for unordered set (same as set in Python).

Searching an element from unordered set takes shorter time than doing the same thing with ordered set (std::set).

Definition at line 49 of file std.h.