-
Notifications
You must be signed in to change notification settings - Fork 444
/
array.h
58 lines (51 loc) · 1 KB
/
array.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#ifndef _INC_SHLWAPI
#define NO_SHLWAPI_STRFCNS
#define NO_SHLWAPI_PATH
#define NO_SHLWAPI_REG
#define NO_SHLWAPI_STREAM
#define NO_SHLWAPI_GDI
#include <shlwapi.h>
#endif
#if !defined(_INC_SHLWAPI) || defined(NOSHLWAPI) || defined(NO_SHLWAPI_PATH)
BOOL WINAPI PathIsRelative(LPCTSTR pszPath);
BOOL WINAPI PathRemoveFileSpec(LPTSTR pszPath);
LPTSTR WINAPI PathFindExtension(LPCTSTR pszPath);
LPTSTR WINAPI PathAddBackslash(LPTSTR pszPath);
LPTSTR WINAPI PathCombine(LPTSTR pszDest, LPCTSTR pszDir, LPCTSTR pszFile);
#endif
#include <atlbase.h>
template <class T>
class CArray : public CSimpleArray<T>
{
public:
T* Begin() const
{
return m_aT;
}
T* End() const
{
return m_aT + m_nSize;
}
};
template <class T>
class CValArray : public CSimpleValArray<T>
{
public:
T* Begin() const
{
return m_aT;
}
T* End() const
{
return m_aT + m_nSize;
}
};
template <class T>
class CPtrArray : public CValArray<T*>
{
};
template <class TKey, class TVal>
class CMap : public CSimpleMap<TKey, TVal>
{
};