Вопросы по теме '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