![]() |
![]() ![]() ![]() ![]() |
![]() |
Class template basic_custom_mappingBoost , Chapter 1. Boost.Log v2 , Sinks
|
|||||||||||||||||||||||||||
![]() | Note |
|---|---|
В отличие от многих других компонентов библиотеки, точный тип значения атрибута должен быть указан в параметре шаблона |
basic_custom_mapping public member functionsmapped_type operator()(record_view const & rec) const;
Extraction operator. Extracts the attribute value and attempts to map it onto the native value.
Parameters: |
| ||
Returns: | A mapped value, if mapping was successful, or the default value if mapping did not succeed. |
Инсертионный оператор
Параметры: |
| ||
Возвращение: | Объект неопределенного типа, который позволяет вставить новое отображение через присвоение. Аргумент key становится ключевым значением атрибута, а назначенное значение становится отображенным родным значением. |
Insertion operator
Parameters: |
| ||
Returns: | An object of unspecified type that allows to insert a new mapping through assignment. The key argument becomes the key attribute value, and the assigned value becomes the mapped native value. |
Статья Class template basic_custom_mapping раздела Chapter 1. Boost.Log v2 Sinks может быть полезна для разработчиков на c++ и boost.
реклама |