17 #ifndef CYBER_COMMON_UTIL_H_ 18 #define CYBER_COMMON_UTIL_H_ 21 #include <type_traits> 27 inline std::size_t
Hash(
const std::string& key) {
28 return std::hash<std::string>{}(key);
31 template <
typename Enum>
32 auto ToInt(Enum
const value) ->
typename std::underlying_type<Enum>::type {
33 return static_cast<typename std::underlying_type<Enum>::type
>(
value);
40 #endif // CYBER_COMMON_UTIL_H_ PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
auto ToInt(Enum const value) -> typename std::underlying_type< Enum >::type
Definition: util.h:32
std::size_t Hash(const std::string &key)
Definition: util.h:27
apollo::cyber::base::std value