Assertion: bind | /r/HasProperty | _3
Facets:
Source sentences:
text: ; } int data = 10 ; } ; int main ( ) { using namespace std:: placeholders ; // for _1, _2, _3... // demonstrates argument reordering and pass-by-reference int n = 7 ; // (_1 and _2 are from std::placeholders, and represent future // arguments that will be passed to f1) auto f1 = std :: bind ( f, _2, 42 , _1, std:: cref ( n ) , n ) ; n = 10 ; f1 ( 1 , 2 , 1001 ) ; // 1 is bound by _1, 2 is bound by _2, 1001 is unused // makes a call to f(2, 42, 1, n, 7) // nested bind subexpressions share the placeholders auto f2 = std :: bind ( f, _3, std :: bind ( g, _3 ) , _3, 4 , 5 )