Remove unnacessary in Tuple example

This commit is contained in:
sha512sum 2024-03-01 17:14:05 +00:00
parent 4207d33d79
commit 9c3b4e6ec0

View file

@ -5,12 +5,12 @@
auto main() -> int {
using utempl::literals::operator""_c;
constexpr utempl::Tuple tuple = utempl::Tuple{42, 3.141500, "Hello World"};
constexpr utempl::Tuple tuple = {42, 3.141500, "Hello World"};
utempl::Tuple<int> tuple2{{}};
std::ignore = tuple2;
std::cout << utempl::kTupleSize<decltype(tuple)> << std::endl; // Get tuple size
std::cout << tuple[0_c] << std::endl; // Get element using [] with literal
auto newTuple = utempl::Transform(tuple, utempl::Overloaded(
auto newTuple = Transform(tuple, utempl::Overloaded(
[](auto arg){
return std::to_string(arg);
},