C++ Library Extensions 2022.12.09
To help learn modern C++ programming
001-reverse.cpp
Go to the documentation of this file.
1#include <tpf_types.hpp>
2
4{
5 std::vector<int> v{0, 1, 2, 3, 4, 5};
6
7 tpf::reverse_t<std::vector<int>> rv{v};
8
9 for(auto e: rv)
10 {
11 std::cout << e << std::endl;
12 }
13}
14
15int main()
16{
18}
void test_reverse()
Definition: 001-reverse.cpp:3
int main()
Definition: 001-reverse.cpp:15
auto & cout
auto & endl
Type functions are implemented.