ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
cvsroot
/
cf.schmorp.de
/
dclient
/
include
/
adt
/
bind.h
Revision:
1.1
Committed:
Sun Oct 17 08:14:44 2010 UTC
(16 years, 1 month ago) by
sf-pippijn
Content type:
text/plain
Branch:
MAIN
Log Message:
initial import
File Contents
#
User
Rev
Content
1
sf-pippijn
1.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
}