1
0
Fork 0
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;
}