ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
deliantra
/
dclient
/
include
/
adt
/
bind.h
Revision:
1.2
Committed:
Fri Jan 21 22:08:47 2011 UTC
(13 years, 6 months ago) by
sf-pippijn
Content type:
text/plain
Branch:
MAIN
CVS Tags:
HEAD
Changes since
1.1
:
+0 -0 lines
State:
FILE REMOVED
Log Message:
not needed, anymore
File Contents
#
Content
1
#pragma once
2
3
#include <functional>
4
5
template<typename T, typename R, typename... Args>
6
static inline std::function<R (Args...)>
7
bind (R (T::*mth) (Args...), T *self)
8
{
9
return [self, mth] (Args... args) { return (self->*mth) (args...); };
10
}