1
Answer

Why do we use special types like size_type

Ask a question
Satyajit

Satyajit

16y
2.4k
1
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)