CARLA
 
载入中...
搜索中...
未找到
TypeTraits.h
浏览该文件的文档.
1// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <type_traits>
10
11namespace carla {
12
13 template <typename... Ts>
14 struct are_same;
15
16 template <typename T0, typename T1, typename... Ts>
17 struct are_same<T0, T1, Ts...> {
18 static constexpr bool value = std::is_same<T0, T1>::value && are_same<T0, Ts...>::value;
19 };
20
21 template <typename T0, typename T1>
22 struct are_same<T0, T1> {
23 static constexpr bool value = std::is_same<T0, T1>::value;
24 };
25
26} // namespace carla
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133