ZeroErr
载入中...
搜索中...
未找到
zeroerr::rank< N > 模板结构体 参考

rank is a helper class for Printer to define the priority of overloaded functions. 更多...

#include <typetraits.h>

详细描述

template<unsigned N>
struct zeroerr::rank< N >

rank is a helper class for Printer to define the priority of overloaded functions.

模板参数
Nthe priority of the rule. 0 is the lowest priority. The maximum priority is max_rank.

You can define a rule by adding it as a function parameter with rank<N> where N is the priority. For example: template<typename T> void Foo(T v, rank<0>); // lowest priority void Foo(int v, rank<1>); // higher priority

Even though in the first rule, type T can be an int, the second function will still be called due to the priority.


该结构体的文档由以下文件生成: