公共类型 | 所有成员列表
cudf::test::AllSame 结构体参考

指示列表中所有类型是否相同。更多...

#include <type_list_utilities.hpp>

公共类型

template<class... ITEMS>
using Call = detail::AllSame< ITEMS... >
 用作 RemoveIf 的谓词。更多...
 

详细描述

指示列表中所有类型是否相同。

这在用作 RemoveIf 的谓词时非常有用。

示例

// AllSame::Call<Types<int, int, int>> == true_type
// AllSame::Call<Types<float, bool>> == false_type
// 用作谓词
RemoveIf<AllSame, Types<Types<int, int, int>>> == Types<>
RemoveIf<AllSame, Types<Types<int, float, int>>> == Types<Types<int, float,
*int>>

定义于文件 type_list_utilities.hpp 的第 330 行。

成员 Typedef 文档

◆ Call

template<class... ITEMS>
using cudf::test::AllSame::Call = detail::AllSame<ITEMS...>

用作 RemoveIf 的谓词。

模板参数
ITEMS要检查是否全部相同的类型

定义于文件 type_list_utilities.hpp 的第 337 行。


此结构体的文档生成自以下文件