X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Finclude%2Fbackward%2Fbinders.h;h=076f8d2e219cf49bf0c83352dc8685d88309f6f1;hp=75e091eb6dbfa36dc2bef393cac27c39450dfe2f;hb=d97134122bbb1c51b2677b1122621037155cd16d;hpb=f58707cd85257fb6095cd0bceed1882f348f78d0;ds=inline diff --git a/libstdc++-v3/include/backward/binders.h b/libstdc++-v3/include/backward/binders.h index 75e091eb6db..076f8d2e219 100644 --- a/libstdc++-v3/include/backward/binders.h +++ b/libstdc++-v3/include/backward/binders.h @@ -51,7 +51,7 @@ /** @file backward/binders.h * This is an internal header file, included by other library headers. - * You should not attempt to use it directly. + * Do not attempt to use it directly. @headername{functional} */ #ifndef _BACKWARD_BINDERS_H @@ -80,7 +80,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * * The type @c binder2nd and its creator function @c bind2nd do the same * thing, but the stored argument is passed as the second parameter instead - * of the first, e.g., @c bind2nd(std::minus,1.3) will create a + * of the first, e.g., @c bind2nd(std::minus(),1.3) will create a * functor whose @c operator() accepts a floating-point number, subtracts * 1.3 from it, and returns the result. (If @c bind1st had been used, * the functor would perform 1.3 - x instead. @@ -89,10 +89,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * calling algorithms. Their return values will be temporary objects. * (The goal is to not require you to type names like * @c std::binder1st> for declaring a variable to hold the - * return value from @c bind1st(std::plus,5). + * return value from @c bind1st(std::plus(),5). * * These become more useful when combined with the composition functions. * + * These functions are deprecated in C++11 and can be replaced by + * @c std::bind (or @c std::tr1::bind) which is more powerful and flexible, + * supporting functions with any number of arguments. Uses of @c bind1st + * can be replaced by @c std::bind(f, x, std::placeholders::_1) and + * @c bind2nd by @c std::bind(f, std::placeholders::_1, x). * @{ */ /// One of the @link binders binder functors@endlink.