13 lines
300 B
C++
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;
|
|
}
|