-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaily.h
35 lines (23 loc) · 918 Bytes
/
daily.h
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
#ifndef CPPDAILY_DAILY_H_
#define CPPDAILY_DAILY_H_
#include <time.h>
#include <string>
#include <vector>
namespace daily {
// ----------------------------------------------------------------------------
// ----------------Mathmatics
// ----------------------------------------------------------------------------
template <class T>
bool InRange(T x, T lower, T upper) {
return (x >= lower && x <= upper);
}
// ----------------------------------------------------------------------------
// ----------------String
// ----------------------------------------------------------------------------
std::string GenerateRandomString(int len);
// ----------------------------------------------------------------------------
// ----------------Time
// ----------------------------------------------------------------------------
std::string GetCurrentDateTime();
} // namespace daily
#endif // CPPDAILY_DAILY_H_