R
responsible
Hi,
Digging through the STL source code, i found this gem..
template <class _Operation, class _Tp>
inline binder2nd<_Operation>
bind2nd(const _Operation& __fn, const _Tp& __x)
{
typedef typename _Operation::second_argument_type _Arg2_type;
return binder2nd<_Operation>(__fn, _Arg2_type(__x));
}
I am trying to understand what this does. Specifically, i don't get
what the first two lines signify.
Why is it that bind2nd can be called like this... bind2nd (b, t) and
NOT bind2nd<binary_function, int> (b, t)??
Thanks a lot in advance
Digging through the STL source code, i found this gem..
template <class _Operation, class _Tp>
inline binder2nd<_Operation>
bind2nd(const _Operation& __fn, const _Tp& __x)
{
typedef typename _Operation::second_argument_type _Arg2_type;
return binder2nd<_Operation>(__fn, _Arg2_type(__x));
}
I am trying to understand what this does. Specifically, i don't get
what the first two lines signify.
Why is it that bind2nd can be called like this... bind2nd (b, t) and
NOT bind2nd<binary_function, int> (b, t)??
Thanks a lot in advance