problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
acwing::acwing845::hash结构体 参考

#include <acwing.h>

Public 成员函数

unsigned int operator() (const array< array< char, 3 >, 3 > &g) const
 

详细描述

在文件 acwing.h2056 行定义.

成员函数说明

◆ operator()()

unsigned int acwing::acwing845::hash::operator() ( const array< array< char, 3 >, 3 > & g) const

在文件 acwing.cpp7142 行定义.

7142 {
7143 unsigned int ret = 0;
7144 for(int i = 0; i < 9; i++) {
7145 char v = g[i / 3][i % 3];
7146 if(v == 'x') {
7147 v = '0';
7148 }
7149 ret *= 10;
7150 ret += v - '0';
7151 }
7152 return ret;
7153 }

引用了 operator()().

被这些函数引用 operator()().


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