STD::BINARY_FUNCTION(3cxx)
π NAME π
okay so this is the 3cxx manual page for std::binary_function< _Arg1, _Arg2, _Result > β the header truncates it as std::binary_fu...Arg2, _Result >(3cxx), but it's the same iconic little struct, no cap. π«Ά
β¨ SYNOPSIS β¨
#include <functional>
Inherited by these absolute legends:
std::_Sp_owner_less< shared_ptr< _Tp >, weak_ptr< _Tp > >std::_Sp_owner_less< weak_ptr< _Tp >, shared_ptr< _Tp > >std::_Sp_owner_less< __shared_ptr< _Tp, _Lp >, __weak_ptr< _Tp, _Lp > >std::_Sp_owner_less< __weak_ptr< _Tp, _Lp >, __shared_ptr< _Tp, _Lp > >std::_Sp_owner_less< void, void >std::equal_to< _Key >std::equal_to< _Value >std::less< typename _Sequence::value_type >__gnu_parallel::_Multiplies< _Tp1, _Tp2, _Result >__gnu_parallel::_Plus< _Tp1, _Tp2, _Result >- and
std::pointer_to_binary_function< _Arg1, _Arg2, _Result >.
π Public Types π
typedef _Arg1 first_argument_typeβfirst_argument_typeis the type of the first argument.typedef _Result result_typeβresult_typeis the return type.typedef _Arg2 second_argument_typeβsecond_argument_typeis the type of the second argument.
π Detailed Description π
template<typename _Arg1, typename _Arg2, typename _Result>
struct std::binary_function< _Arg1, _Arg2, _Result >
So what is it? It's the βHelper for defining adaptable binary function objects.β π
π Deprecated π
Deprecated β deprecated in C++11, no longer in the standard since C++17. Not me pretending this is current, bestie β it's literally a legacy icon. π
π¦ Member Typedef Documentation π¦
first_argument_type
template<typename _Arg1 , typename _Arg2 , typename _Result >
typedef _Arg1 std::binary_function< _Arg1, _Arg2, _Result >::first_argument_type
first_argument_type is the type of the first argument.
result_type
template<typename _Arg1 , typename _Arg2 , typename _Result >
typedef _Result std::binary_function< _Arg1, _Arg2, _Result >::result_type
result_type is the return type.
second_argument_type
template<typename _Arg1 , typename _Arg2 , typename _Result >
typedef _Arg2 std::binary_function< _Arg1, _Arg2, _Result >::second_argument_type
second_argument_type is the type of the second argument.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Okay that's the whole page! π source/version: libstdc++; manual section: 3cxx; date: no separate date is printed in the original footer text β the footer just carries that (3cxx) tag. Byeee bestie π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms