Partager via


<functional> Members

Reference

Classes

binary_negate

A template class providing a member function that negates the return value of a specified binary function.

binder1st

A template class providing a constructor that converts a binary function object into a unary function object by binding the first argument of the binary function to a specified value.

binder2nd

A template class providing a constructor that converts a binary function object into a unary function object by binding the second argument of the binary function to a specified value.

const_mem_fun_ref_t

An adapter class that allows a const member function that takes no arguments to be called as a unary function object when initialized with a reference argument.

const_mem_fun_t

An adapter class that allows a const member function that takes no arguments to be called as a unary function object when initialized with a pointer argument.

const_mem_fun1_ref_t

An adapter class that allows a const member function that takes a single argument to be called as a binary function object when initialized with a reference argument.

const_mem_fun1_t

An adapter class that allows a const member function that takes a single argument to be called as a binary function object when initialized with a pointer argument.

mem_fun_ref_t

An adapter class that allows a non_const member function that takes no arguments to be called as a unary function object when initialized with a reference argument.

mem_fun_t

An adapter class that allows a non_const member function that takes no arguments to be called as a unary function object when initialized with a pointer argument.

mem_fun1_ref_t

An adapter class that allows a non_const member function that takes a single argument to be called as a binary function object when initialized with a reference argument.

mem_fun1_t

An adapter class that allows a non_const member function that takes a single argument to be called as a binary function object when initialized with a pointer argument.

pointer_to_binary_function

Converts a binary function pointer into an adaptable binary function.

pointer_to_unary_function

Converts a unary function pointer into an adaptable unary function.

unary_negate

A template class providing a member function that negates the return value of a specified unary function.

Functions

bind1st

A helper template function that creates an adaptor to convert a binary function object into a unary function object by binding the first argument of the binary function to a specified value.

bind2nd

A helper template function that creates an adaptor to convert a binary function object into a unary function object by binding the second argument of the binary function to a specified value.

mem_fun

Helper template functions used to construct function object adaptors for member functions when initialized with pointer arguments.

mem_fun_ref

A helper template function used to construct function object adaptors for member functions when initialized with reference arguments.

not1

Returns the complement of a unary predicate.

not2

Returns the complement of a binary predicate.

ptr_fun

A helper template function used to convert unary and binary function pointers, respectively, into unary and binary adaptable functions.

Structs

binary_function

An empty base class that defines types that may be inherited by derived class that provides a binary function object.

divides

The class provides a predefined function object that performs the arithmetic operation of division on elements of a specified value type.

equal_to

A binary predicate that tests whether a value of a specified type is equal to another value of that type.

greater

A binary predicate that tests whether a value of a specified type is greater than another value of that type.

greater_equal

A binary predicate that tests whether a value of a specified type is greater than or equal to another value of that type.

less

A binary predicate that tests whether a value of a specified type is less than another value of that type.

less_equal

A binary predicate that tests whether a value of a specified type is less than or equal to another value of that type.

logical_and

The class provides a predefined function object that performs the logical operation of conjunction on elements of a specified value type and tests for the truth or falsity of the result.

logical_not

The class provides a predefined function object that performs the logical operation of negation on elements of a specified value type and tests for the truth or falsity of the result.

logical_or

The class provides a predefined function object that performs the logical operation of disjunction on elements of a specified value type and tests for the truth or falsity of the result.

minus

The class provides a predefined function object that performs the arithmetic operation of subtraction on elements of a specified value type.

modulus

The class provides a predefined function object that performs the arithmetic operation of modulus on elements of a specified value type.

multiplies

The class provides a predefined function object that performs the arithmetic operation of multiplication on elements of a specified value type.

negate

The class provides a predefined function object that returns the negative of an element value.

not_equal_to

A binary predicate that tests whether a value of a specified type is not equal to another value of that type.

plus

The class provides a predefined function object that performs the arithmetic operation of addition on elements of a specified value type.

unary_function

An empty base class that defines types that may be inherited by derived class that provides a unary function object.

See Also

Concepts

<functional>

Thread Safety in the Standard C++ Library

Standard Template Library