Satyajit

Satyajit

  • NA
  • 3
  • 0

Why do we use special types like size_type

Apr 20 2008 7:38 PM
Hi,
I am re-learning c++ through the c++ primer book. The author consistently uses declarations like

list<int>::const_iterator result =
find(lst.begin(), lst.end(), search_value);

size_type size=c.count();

Why is he doing that? Why can't we just declare int or float


Answers (1)