.. _cpp-Function: ********************************************************** Function.hpp ********************************************************** .. default-domain:: cpp .. default-role:: cpp:expr .. py:currentmodule:: mod .. cpp:namespace:: mod The class template `Function` is used throughout the library to represent function objects. .. class:: template Function Class ``template Function`` -------------------------------------------------------------------------------------------------------------------------------- .. class:: template Function Abstract base class template for function objects used in the library. Synopsis ^^^^^^^^ .. alias:: template Function :maxdepth: 2 :noroot: Details ^^^^^^^ .. cpp:namespace-push:: template Function .. function:: virtual std::shared_ptr > clone() const = 0 Cloning function used when a copy of a given functor is needed. .. function:: virtual void print(std::ostream &s) const = 0 Printing function used for describing the function in output from algorithms. .. function:: virtual R operator()(Args ...args) const = 0 The actual function implementation of the function. .. cpp:namespace-pop::