What size_t (*) (const std :: juft <int, int> &) degan ma'noni anglatadi

Men bunday kodni o'qidim va shu mag'lubiyatga qoqilaman

ConcurrentHashMap, int, size_t(*)(const std::pair&)> pair_table(pair_hash);

Could you help in explaining what size_t(*)(const std::pair&) construction means?

0
@NathanOliver juda foydali bo'lsa-da, afsuski, C ++ noto'g'ri tushunchasini tushunmaydi :( Bu erda buyruq qatori usuli mavjud: linux.die.net/man/1/c++decl
qo'shib qo'ydi muallif user2079303, manba
@NathanOliver juda foydali bo'lsa-da, afsuski, C ++ noto'g'ri tushunchasini tushunmaydi :( Bu erda buyruq qatori usuli mavjud: linux.die.net/man/1/c++decl
qo'shib qo'ydi muallif user2079303, manba
Bundan tashqari, cdecl.org
qo'shib qo'ydi muallif NathanOliver, manba
Bundan tashqari, cdecl.org
qo'shib qo'ydi muallif NathanOliver, manba
@ user2079303 Ha, Yaxshiyamki, Siz odatda C ++ inessini o'chirishingiz mumkin.
qo'shib qo'ydi muallif NathanOliver, manba
@ user2079303 Ha, Yaxshiyamki, Siz odatda C ++ inessini o'chirishingiz mumkin.
qo'shib qo'ydi muallif NathanOliver, manba
Funktsiyani ko'rsatadigan belgini turi ... funktsiyasiga o'xshaydi, bu er-xotin soniyani oladi va hajmini qaytaradi.
qo'shib qo'ydi muallif Jean-Baptiste Yunès, manba
Funktsiyani ko'rsatadigan belgini turi ... funktsiyasiga o'xshaydi, bu er-xotin soniyani oladi va hajmini qaytaradi.
qo'shib qo'ydi muallif Jean-Baptiste Yunès, manba
funktsiya belgisi
qo'shib qo'ydi muallif apple apple, manba

6 javoblar

Uni ichki tomondan o'qing:

size_t(*)(const std::pair&)

the * indicates that the type is a pointer, then the parentheses indicate that this is a pointer to a function, the function takes a const std::pair& as an argument and returns a size_t.

2
qo'shib qo'ydi
nima uchun size_t (*) size_t (* name) kabi nomga ega emas?
qo'shib qo'ydi muallif Roma Karageorgievich, manba

Uni ichki tomondan o'qing:

size_t(*)(const std::pair&)

the * indicates that the type is a pointer, then the parentheses indicate that this is a pointer to a function, the function takes a const std::pair& as an argument and returns a size_t.

2
qo'shib qo'ydi
nima uchun size_t (*) size_t (* name) kabi nomga ega emas?
qo'shib qo'ydi muallif Roma Karageorgievich, manba

It is a function pointer to a function with size_t return type, and const std::pair& argument.

1
qo'shib qo'ydi

It is a function pointer to a function with size_t return type, and const std::pair& argument.

1
qo'shib qo'ydi

It's a pointer to a function that returns size_t and takes a const std::pair& as the parameter.

Ko'pincha siz o'zingizni o'zgartiradigan nomni (*) qismida ko'rishingiz mumkin. Bu chalkashlikka sabab bo'ladigan narsa bormi?

1
qo'shib qo'ydi

It's a pointer to a function that returns size_t and takes a const std::pair& as the parameter.

Ko'pincha siz o'zingizni o'zgartiradigan nomni (*) qismida ko'rishingiz mumkin. Bu chalkashlikka sabab bo'ladigan narsa bormi?

1
qo'shib qo'ydi