std::seed_seq::size
Da 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. |
std::size_t size() const | (desde C++11) | |
Retorna o tamanho da sequência de sementes armazenadas inicial.
Original:
Returns the size of the stored initial seed sequence.
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.
Índice |
[editar] Parâmetros
(Nenhum)
Original:
(none)
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.
[editar] Valor de retorno
O tamanho do recipiente particular que foi preenchido em tempo de construção.
Original:
The size of the private container that was populated at construction time.
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.
[editar] Complexidade
Constante de tempo.
Original:
Constant time.
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.
[editar] Exemplo
#include <random> #include <iostream> int main() { std::seed_seq s1 = {-1, 0, 1}; std::cout << s1.size() << '\n'; }
Saída:
3