-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_print_range.cpp
More file actions
35 lines (28 loc) · 855 Bytes
/
test_print_range.cpp
File metadata and controls
35 lines (28 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*****************************************************************//**
* \file test_print_range.cpp
* \brief
*
* \author Xuhua Huang
* \date November 28, 2022
*********************************************************************/
#include <stdlib.h>
#include <iostream>
#include <vector>
#include "print_range.hpp"
int main(void) {
// std::vector<std::vector<int>> x{
// std::vector<int> {3, 1, 1, 4},
// std::vector<int> {5, -3, 2, 1},
// std::vector<int> {6, 2, -9, 5},
// };
std::vector<int> x{6, 2, -9, 5};
util::range::print_range(x, true);
std::cout << "\n";
std::string_view s{"hello"};
util::range::print_range(s, true);
std::cout << "\n";
util::range::print_range(std::string_view{"world"}, true);
std::cout << "\n";
system("pause");
return EXIT_SUCCESS;
}