[過去ログ] C++相談室 part164 (1002レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
29: (ワッチョイ cf34-TSnC) 2023/05/14(日)06:44 ID:YUNKAbGY0(1/3) AAS
template <>
struct std::hash<std::pair<int, int>>
{
static constexpr std::size_t size = sizeof(int) * 2;
using result_type = std::bitset<size * CHAR_BIT>;

result_type operator()(const std::pair<int, int>& val) const
{
省6
30: (ワッチョイ cf34-TSnC) 2023/05/14(日)06:47 ID:YUNKAbGY0(2/3) AAS
もとい
ret |= result_type(get<0>(val));
ret <<= sizeof(int) * CHAR_BIT; //fix
ret |= result_type(get<1>(val));
38: (ワッチョイ cf34-TSnC) 2023/05/14(日)21:34 ID:YUNKAbGY0(3/3) AAS
ヒントじゃあかんのね
100%完全なコードを提供しないとクレームつくわけか

# 若旦はん、やってて恥ずかしおまへんか?
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.036s