1
0
This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
modern_cpp_tutorial/chapters/chapter_02/src/structured_binding.cpp

13 lines
300 B
C++

#include "structured_binding.h"
#include <cstdint>
#include <iostream>
#include <tuple>
std::tuple<const char *, uint32_t> func() { return {"32", 32}; }
void StructuredBindingTest::run() {
const auto &[str, val] = func();
std::cout << "Bound values: " << str << " and " << val << std::endl;
}