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 179-180 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 350-351 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 {}; }





Add Discussion

Log in to comment