feat: add structured binding test

This commit is contained in:
Michael Mandl 2023-10-21 17:11:05 +02:00
parent 88742436a1
commit 543b4b832a
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
4 changed files with 36 additions and 11 deletions

View file

@ -0,0 +1,12 @@
#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;
}