Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::size_t

 

std::size_t is a data type to hold a size.

 

#include <vector>

int main()
{
  std::vector<int> v(std::rand() % 100); //v has unknown size
  const std::size_t sz = v.size();
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict