Function operator+
Summary
#include <src/entt/core/type_traits.hpp>
(1) template <typename... Type, typename... Other>
constexpr type_list< Type..., Other... > operator+(type_list< Type... >, type_list< Other... >)
(2) template <auto... Value, auto... Other>
constexpr value_list< Value..., Other... > operator+(value_list< Value... >, value_list< Other... >)
Function overload
Synopsis
#include <src/entt/core/type_traits.hpp>
template <typename... Type, typename... Other>
constexpr type_list< Type..., Other... > operator+(type_list< Type... >, type_list< Other... >)
Description
Concatenates multiple type lists.
- Template Parameters
Type
- Types provided by the first type list.Other
- Types provided by the second type list.- Returns
- A type list composed by the types of both the type lists.
Source
Lines 156-159 in src/entt/core/type_traits.hpp.
template<typename... Type, typename... Other>
constexpr type_list<Type..., Other...> operator+(type_list<Type...>, type_list<Other...>) {
return {};
}
Synopsis
#include <src/entt/core/type_traits.hpp>
template <auto... Value, auto... Other>
constexpr value_list< Value..., Other... > operator+(value_list< Value... >, value_list< Other... >)
Description
Concatenates multiple value lists.
- Template Parameters
Value
- Values provided by the first value list.Other
- Values provided by the second value list.- Returns
- A value list composed by the values of both the value lists.
Source
Lines 331-334 in src/entt/core/type_traits.hpp.
template<auto... Value, auto... Other>
constexpr value_list<Value..., Other...> operator+(value_list<Value...>, value_list<Other...>) {
return {};
}