w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
Edit
In Place Editing Advanced Editing
  • References
  • C, C++
  • C++
  • Numerics

std::seed_seq::size

std::size_t size() const;
(since C++11)

Returns the size of the stored initial seed sequence.

Parameters

(none).

Return value

The size of the private container that was populated at construction time.

Complexity

Constant time.

Exeptions

(none) (until C++17)
noexcept specification:
noexcept
(since C++17)

Example

#include <random>
#include <iostream>
int main()
{
    std::seed_seq s1 = {-1, 0, 1};
    std::cout << s1.size() << '\n';
}

Output:

3
Links:
  • http://en.cppreference.com/w/cpp/numeric/random/seed_seq/size
doc_CPP
doc_CPP
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
std::seed_seq::seed_seq seed_seq(); (1) (since C++11) seed_seq( const seed_seq& ) = delete; (2) (since C++11) template< class InputIt > seed_seq( Inpu
std::seed_seq Defined in header <random> class seed_seq; (since C++11) std::seed_seq consumes a sequence of integer-valued data and produces a
std::seed_seq::param template< class OutputIt > void param( OutputIt dest ) const; (since C++11) Outputs the initial seed sequence that's stored in the std:
std::seed_seq::generate template< class RandomIt > void generate( RandomIt begin, RandomIt end ); (since C++11) Fills the range [begin, end) with unsigned inte
std::size Defined in header <iterator> template < class C > constexpr auto size( const C& c ) -> decltype(c.size()); (1) (since


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions