Container requirements

  • Thread starter subramanian100in
  • Start date
S

subramanian100in

In the ISO/IEC 14882-2003 document, in page 468 in section 23.1
'Container requirements', in item 10, the following line is mentioned:

- no copy constructor or assignment operator of a returned iterator
throws an exception.

I am unable to understand what is the 'returned iterator'. Kindly
explain this line with example.

Thanks
V.Subramanian
 
J

Jerry Coffin

(e-mail address removed)>,
(e-mail address removed) says...
In the ISO/IEC 14882-2003 document, in page 468 in section 23.1
'Container requirements', in item 10, the following line is mentioned:

- no copy constructor or assignment operator of a returned iterator
throws an exception.

I am unable to understand what is the 'returned iterator'. Kindly
explain this line with example.

If you call something like container.begin() or container.end(), it
returns an iterator. You can assign or copy that iterator with an
assurance that doing so will never throw.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top