Remove unnacessary in Tuple example
This commit is contained in:
parent
4207d33d79
commit
9c3b4e6ec0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue