Пространства имён
Варианты
Действия

Function objects

Материал из cppreference.com

 
 
 
Функция объектов
Функция обертки
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)
Привязка
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)
Ссылка обертки
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)
Оператор обертки
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.
Negators
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Устаревшие связующих и адаптеры
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(устарело)
binary_function(устарело)
ptr_fun(устарело)
pointer_to_unary_function(устарело)
pointer_to_binary_function(устарело)
mem_fun(устарело)
mem_fun_t
mem_fun1_t
const_mem_fun_t
const_mem_fun1_t
(устарело)
(устарело)
(устарело)
(устарело)
mem_fun_ref(устарело)
mem_fun_ref_t
mem_fun1_ref_t
const_mem_fun_ref_t
const_mem_fun1_ref_t
(устарело)
(устарело)
(устарело)
(устарело)
binder1st
binder2nd
(устарело)
(устарело)
bind1st
bind2nd
(устарело)
(устарело)
 
Объект' является функцией любого объекта, для которого оператор вызова функции определен. C + + предоставляет множество встроенных функций объектов, а также поддержку для создания и управления новыми объектами функция.
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.

Содержание

[править] Полиморфные обертки функции

std::function обеспечивает поддержку для хранения произвольных объектов функция.
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)
обертывания вызываемый объект любого типа с заданной подписью вызова функции
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.

(шаблон класса) [edit]
(C++11)
создает объект функции из указателя на член
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.

(шаблон функции) [edit]
исключение при вызове пустой std::function
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.

(класс) [edit]

[править] Привязка

std::bind обеспечивает поддержку частичное применение функции, то есть обязательные аргументы функций для создания новых функций.
Original:
std::bind provides support for частичное применение функции, 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)
связывает одну или несколько аргументов функции объекта
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.

(шаблон функции) [edit]
указывает, что объект является std::bind выражение или может быть использован как один
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.

(шаблон класса) [edit]
указывает, что объект является стандартным заполнителя или может быть использован как один
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.

(шаблон класса) [edit]
Defined in namespace std::placeholders
заполнители для несвязанных аргументы в 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.

(константа) [edit]

[править] Ссылка обертки

Ссылка оболочки позволяют ссылкой аргументы, которые будут храниться в копируемой функциональных объектов
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 и CopyAssignable ссылкой обертку
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.

(шаблон класса) [edit]
(C++11)
(C++11)
создает std::reference_wrapper с типом выводится из своих аргументов
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.

(шаблон функции) [edit]

[править] Функция объектов

C + + определяет несколько функциональных объектов, которые представляют общие арифметические и логические операции
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.
Арифметических операций
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.
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий -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.

(шаблон класса) [edit]
Сравнения
Original:
Comparisons
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Логические операции
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.
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий !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.

(шаблон класса) [edit]
Побитовые операции
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.
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Функция объект, реализующий 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.

(шаблон класса) [edit]
Negators
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Объект функции-оболочки возвращения дополнение к унарный предикат в ней хранится
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.

(шаблон класса) [edit]
Объект функции-оболочки возвращения дополнение к бинарным предикатом в ней хранится
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.

(шаблон класса) [edit]
создает пользовательский объект 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.

(шаблон функции) [edit]
создает пользовательский объект 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.

(шаблон функции) [edit]

[править] Устарело в C + +11

Несколько утилит, которые при условии ранней функциональной поддержки являются устаревшими в 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.
(устарело)
Адаптер-совместимых унарные функции базового класса
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.

(шаблон класса) [edit]
(устарело)
Адаптер-совместимых бинарной функции базового класса
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.

(шаблон класса) [edit]
Связующие вещества
Original:
Binders
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(устарело)
(устарело)
Функция объект, содержащий двоичной функции и одним из его аргументов
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.

(шаблон класса) [edit]
(устарело)
(устарело)
связывает один аргумент в бинарной функции
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.

(шаблон функции) [edit]
Функция адаптеров
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.
(устарело)
Адаптер-совместимая оболочка для указателя на унарные функции
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.

(шаблон класса) [edit]
(устарело)
Адаптер-совместимая оболочка для указателя на бинарной функции
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.

(шаблон класса) [edit]
(устарело)
создает адаптер-совместимые функции объекта обертку от указателя на функцию
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.

(шаблон функции) [edit]
(устарело)
(устарело)
(устарело)
(устарело)
оболочкой для указателя на нульарные функция, вызываемая с указателем на объект
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.

(шаблон класса) [edit]
(устарело)
создает обертку от указателя на функцию-член, вызываемая с указателем на объект
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.

(шаблон функции) [edit]
(устарело)
(устарело)
(устарело)
(устарело)
wapper для указателя на нульарные или унарные функции-члены, вызываемые со ссылкой на объект
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.

(шаблон класса) [edit]
(устарело)
создает обертку от указателя на функцию-член, вызываемая со ссылкой на объект
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.

(шаблон функции) [edit]