2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-26 18:42:16 +00:00

is_placeholder, is_bind_expression added.

[SVN r34468]
This commit is contained in:
Peter Dimov
2006-07-06 13:47:26 +00:00
parent 24e8602cf1
commit 2e8c4eb8f3

View File

@@ -207,6 +207,28 @@ public:
} // namespace lambda
} // namespace boost
// is_placeholder
#include <boost/is_placeholder.hpp>
namespace boost
{
template<> struct is_placeholder< lambda::lambda_functor< lambda::placeholder<lambda::FIRST> > >
{
enum _vt { value = 1 };
};
template<> struct is_placeholder< lambda::lambda_functor< lambda::placeholder<lambda::SECOND> > >
{
enum _vt { value = 2 };
};
template<> struct is_placeholder< lambda::lambda_functor< lambda::placeholder<lambda::THIRD> > >
{
enum _vt { value = 3 };
};
} // namespace boost
#endif