Pertanyaan tentang topik tersebut 'structured-bindings'
Pengikatan terstruktur pada const
Apakah kode berikut seharusnya dikompilasi?
#include <type_traits>
void foo() {
const std::pair<int, int> x = {1, 2};
auto [a, b] = x;
static_assert(std::is_const_v<decltype(a)>);...
697 dilihat
schedule
24.12.2023