It initializes the target with f. alloc is used to allocate memory for any internal data structures that the function might use.
DeclarationFollowing is the declaration for std::function::assign.
C++11template< class F, class Alloc >C++17
void assign( F&& f, const Alloc& alloc );Parameters
other − This function object used to initialize *this.
f − a callable used to initialize *this.
none
Exceptionsnone
functional.htm
Print Page
Previous
Next
Advertisements
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4