คำถามในหัวข้อ 'structured-bindings'
การเชื่อมโยงแบบมีโครงสร้างบน const
รหัสต่อไปนี้ควรจะคอมไพล์หรือไม่
#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 มุมมอง
schedule
24.12.2023