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
3
void
test_reverse
()
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
15
int
main
()
16
{
17
test_reverse
();
18
}
test_reverse
void test_reverse()
Definition:
001-reverse.cpp:3
main
int main()
Definition:
001-reverse.cpp:15
cout
auto & cout
Definition:
044-functional.cpp:3
endl
auto & endl
Definition:
apply_operations.cpp:32
tpf_types.hpp
Type functions are implemented.
CppExtension
examples
001-reverse.cpp
Generated by
1.9.4