std::min_element
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <algorithm>
|
||
template< class ForwardIt > ForwardIt min_element( ForwardIt first, ForwardIt last ); |
(1) | |
template< class ForwardIt, class Compare > ForwardIt min_element( ForwardIt first, ForwardIt last, Compare comp ); |
(2) | |
Encontra o menor elemento no
[first, last) alcance. A primeira versão utiliza operator< para comparar os valores, a segunda versão utiliza a função de comparação dada comp.Original:
Finds the smallest element in the range
[first, last). The first version uses operator< to compare the values, the second version uses the given comparison function comp.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parâmetros
| first, last | - | iteradores para a frente que definem o intervalo para examinar
Original: forward iterators defining the range to examine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| cmp | - | comparison function which returns true if if *a is less than *b. The signature of the comparison function should be equivalent to the following:
|