pva2pva
1.4.1
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
p2pApp
helper.h
1
#ifndef HELPER_H
2
#define HELPER_H
3
4
#include <memory>
5
6
#define FOREACH(ITERTYPE, IT,END,C) for(ITERTYPE IT=(C).begin(), END=(C).end(); IT!=END; ++IT)
7
8
namespace
p2p {
9
#if __cplusplus>=201103L
10
template
<
typename
T>
11
using
auto_ptr = std::unique_ptr<T>;
12
#define PTRMOVE(AUTO) std::move(AUTO)
13
#else
14
using
std::auto_ptr;
15
#define PTRMOVE(AUTO) (AUTO)
16
#endif
17
}
18
19
#endif // HELPER_H
Generated by
1.8.5