Std :: bind with explicit return type

One version std::bind

allows the caller to provide an explicit return type:

template< class R, class F, class... Args >
/*unspecified*/ bind( F&& f, Args&&... args );

      

What's a good example when you can use (or be forced to use) this version std::bind

?

+3
c ++ c ++ 11


source to share


No one has answered this question yet

Check out similar questions:

3076
What are the differences between a pointer variable and a reference variable in C ++?
2437
Why "using the std namespace;" considered bad practice?
2387
What does an explicit keyword mean?
1250
Replacing 32-bit loop counter with 64-bit values ​​leads to crazy performance deviations
651
std :: wstring VS std :: string
514
Are the days of going const std :: string & as a parameter passing by?
366
Pretty printable STL STL containers
23
std :: bind on shared lambda - automatic type inference
4
Failed to infer template argument for std :: function from std :: bind
1
How to avoid explicit casting of temporary objects to std :: bind ()?



All Articles
Loading...
X
Show
Funny
Dev
Pics