Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::function::assign(3)      C++ Standard Libary     std::function::assign(3)

NAME
       std::function::assign - std::function::assign

Synopsis
	  template< class F, class Alloc >	     (since C++11)
	  void assign( F&& f, const Alloc& alloc );  (removed in C++17)

	  Initializes  the target with f. The alloc is used to allocate	memory
       for any internal
	  data structures that the function might use.

	  Equivalent   to   function(std::allocator_arg,   alloc,    std::for-
       ward<F>(f)).swap(*this);.

Parameters
	  f	- callable function to initialize the target with
	  alloc	 -  allocator  to use to allocate memory for the internal data
       structures

Return value
	  (none)

Exceptions
	  May throw implementation-defined exceptions.

See also
	  operator= assigns a new target
		    (public member function)

http://cppreference.com		  2022.07.31	      std::function::assign(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::function::assign&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help