Namespace
Varianti

Function objects

Da cppreference.com.
< cpp‎ | utility


 
 
Utilità libreria
Tipo di supporto (basic types, RTTI, type traits)
Gestione della memoria dinamica
La gestione degli errori
Programma di utilità
Funzioni variadic
Data e ora
Funzione oggetti
initializer_list(C++11)
bitset
hash(C++11)
Gli operatori relazionali
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Coppie e tuple
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
Swap, in avanti e spostare
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
Funzione oggetti
Funzione wrapper
Original:
Function wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
function(C++11)
mem_fn(C++11)
bad_function_call(C++11)
Associare
Original:
Bind
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bind(C++11)
is_bind_expression(C++11)
is_placeholder(C++11)
_1, _2, _3, ...(C++11)
Wrapper di riferimento
Original:
Reference wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
reference_wrapper(C++11)
ref
cref
(C++11)
(C++11)
Operatore wrapper
Original:
Operator wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Negatori
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Sconsigliata a leganti e adattatori
Original:
Deprecated binders and adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unary_function(deprecato)
binary_function(deprecato)
ptr_fun(deprecato)
pointer_to_unary_function(deprecato)
pointer_to_binary_function(deprecato)
mem_fun(deprecato)
mem_fun_t
mem_fun1_t
const_mem_fun_t
const_mem_fun1_t
(deprecato)
(deprecato)
(deprecato)
(deprecato)
mem_fun_ref(deprecato)
mem_fun_ref_t
mem_fun1_ref_t
const_mem_fun_ref_t
const_mem_fun1_ref_t
(deprecato)
(deprecato)
(deprecato)
(deprecato)
binder1st
binder2nd
(deprecato)
(deprecato)
bind1st
bind2nd
(deprecato)
(deprecato)
 
Una funzione' oggetto è qualsiasi oggetto per cui è definito l'operatore chiamata di funzione. C + + fornisce numerose funzionalità incorporate in oggetti funzione, nonché di sostegno per la creazione e la manipolazione di oggetti funzione nuovi.
Original:
A function object is any object for which the function call operator is defined. C++ provides many built-in function objects as well as support for creation and manipulation of new function objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Wrapper funzione polimorfa

std::function fornisce il supporto per la memorizzazione di oggetti funzione arbitrari.
Original:
std::function provides support for storing arbitrary function objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
avvolge oggetto invocabile di qualsiasi tipo con la firma specificato chiamata di funzione
Original:
wraps callable object of any type with specified function call signature
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(C++11)
crea un oggetto funzione di un puntatore a un membro
Original:
creates a function object out of a pointer to a member
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
l'eccezione generata quando si invoca un std::function vuoto
Original:
the exception thrown when invoking an empty std::function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [modifica]

[modifica] Associare

std::bind fornisce il supporto per funzione di applicazione parziale, vale a dire gli argomenti vincolanti alle funzioni per la produzione di nuove funzioni.
Original:
std::bind provides support for funzione di applicazione parziale, i.e. binding arguments to functions to produce new functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
lega uno o più argomenti a un oggetto funzione
Original:
binds one or more arguments to a function object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
indica che un oggetto è un'espressione std::bind o può essere usato come uno
Original:
indicates that an object is std::bind expression or can be used as one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
indica che un oggetto è un segnaposto standard o può essere usato come uno
Original:
indicates that an object is a standard placeholder or can be used as one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Defined in namespace std::placeholders
segnaposto per gli argomenti non legate in un'espressione std::bind
Original:
placeholders for the unbound arguments in a std::bind expression
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(costante) [modifica]

[modifica] Wrapper di riferimento

Involucri di riferimento consentono argomenti di riferimento deve essere conservata in oggetti funzione copiabile:
Original:
Reference wrappers allow reference arguments to be stored in copyable function objects:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CopyConstructible e CopyAssignable involucro di riferimento
Original:
CopyConstructible and CopyAssignable reference wrapper
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(C++11)
(C++11)
crea un std::reference_wrapper con un tipo dedotta dal suo argomento
Original:
creates a std::reference_wrapper with a type deduced from its argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]

[modifica] Funzione oggetti

C + + definisce gli oggetti funzionali diversi che rappresentano operazioni aritmetiche e logiche comuni:
Original:
C++ defines several function objects that represent common arithmetic and logical operations:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operazioni aritmetiche
Original:
Arithmetic operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
oggetto funzione attuazione x + y
Original:
function object implementing x + y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x - y
Original:
function object implementing x - y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x * y
Original:
function object implementing x * y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x / y
Original:
function object implementing x / y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x % y
Original:
function object implementing x % y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione -x
Original:
function object implementing -x
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Confronti
Original:
Comparisons
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
oggetto funzione attuazione x == y
Original:
function object implementing x == y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x != y
Original:
function object implementing x != y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x > y
Original:
function object implementing x > y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x < y
Original:
function object implementing x < y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x >= y
Original:
function object implementing x >= y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x <= y
Original:
function object implementing x <= y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Operazioni logiche
Original:
Logical operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
oggetto funzione attuazione x && y
Original:
function object implementing x && y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x || y
Original:
function object implementing x || y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione !x
Original:
function object implementing !x
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Bit per bit operazioni
Original:
Bitwise operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
oggetto funzione attuazione x & y
Original:
function object implementing x & y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x | y
Original:
function object implementing x | y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
oggetto funzione attuazione x ^ y
Original:
function object implementing x ^ y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Negatori
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
funzione oggetto wrapper restituisce il complemento del predicato unario che detiene
Original:
wrapper function object returning the complement of the unary predicate it holds
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
funzione oggetto wrapper restituisce il complemento del predicato binario che detiene
Original:
wrapper function object returning the complement of the binary predicate it holds
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
costruisce oggetto personalizzato std::unary_negate
Original:
constructs custom std::unary_negate object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
costruisce oggetto personalizzato std::binary_negate
Original:
constructs custom std::binary_negate object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]

[modifica] Sconsigliata in C + +11

Diversi programmi di utilità che hanno fornito supporto funzionale precoce sono deprecati in C + +11:
Original:
Several utilities that provided early functional support are deprecated in C++11:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Base
Original:
Base
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(deprecato)
adattatore compatibile unario classe base funzione
Original:
adaptor-compatible unary function base class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(deprecato)
adattatore compatibile con la funzione di classe di base binaria
Original:
adaptor-compatible binary function base class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
Leganti
Original:
Binders
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(deprecato)
(deprecato)
oggetto funzione che tiene una funzione binaria e uno dei suoi argomenti
Original:
function object holding a binary function and one of its arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(deprecato)
(deprecato)
lega un argomento a una funzione binaria
Original:
binds one argument to a binary function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
Funzione adattatori
Original:
Function adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
adattatore compatibile wrapper per un puntatore a funzione unaria
Original:
adaptor-compatible wrapper for a pointer to unary function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
adattatore compatibile wrapper per un puntatore a funzione binaria
Original:
adaptor-compatible wrapper for a pointer to binary function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(deprecato)
crea un adattatore compatibile con wrapper di oggetto funzione da un puntatore a funzione
Original:
creates an adaptor-compatible function object wrapper from a pointer to function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
(deprecato)
(deprecato)
(deprecato)
(deprecato)
wrapper per un puntatore a funzione membro nullary, richiamabile con un puntatore a oggetto
Original:
wrapper for a pointer to nullary member function, callable with a pointer to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(deprecato)
crea un wrapper da un puntatore a funzione membro, richiamabile con un puntatore a oggetto
Original:
creates a wrapper from a pointer to member function, callable with a pointer to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]
Wapper per un puntatore a funzione membro nullary o unario, richiamabile con un riferimento all'oggetto
Original:
wapper for a pointer to nullary or unary member function, callable with a reference to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template) [modifica]
(deprecato)
crea un wrapper da un puntatore a funzione membro, richiamabile con un riferimento all'oggetto
Original:
creates a wrapper from a pointer to member function, callable with a reference to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [modifica]