Skip to main content
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

See here for an example of an iterator: http://codereview.stackexchange.com/a/9399/507https://codereview.stackexchange.com/a/9399/507 (though I did not make the container as well as I could because I did not specify the types I should have).

See here for an example of a linked list using a single sentinel.
http://codereview.stackexchange.com/a/126007/507https://codereview.stackexchange.com/a/126007/507

See here for an example of an iterator: http://codereview.stackexchange.com/a/9399/507 (though I did not make the container as well as I could because I did not specify the types I should have).

See here for an example of a linked list using a single sentinel.
http://codereview.stackexchange.com/a/126007/507

See here for an example of an iterator: https://codereview.stackexchange.com/a/9399/507 (though I did not make the container as well as I could because I did not specify the types I should have).

See here for an example of a linked list using a single sentinel.
https://codereview.stackexchange.com/a/126007/507

added 1 character in body
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341

See here for an example of a linked list using a single sentinel.
http://codereview.stackexchange.com/a/28393/507http://codereview.stackexchange.com/a/126007/507

See here for an example of a linked list using a single sentinel.
http://codereview.stackexchange.com/a/28393/507

See here for an example of a linked list using a single sentinel.
http://codereview.stackexchange.com/a/126007/507

added 1 characters in body
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341

Also you iterator does not meet eventeven the trivial requirements to iteratortrivial iterator as you are missing operator ->. See http://www.sgi.com/tech/stl/table_of_contents.html specifically look at the iterator section. I presume you are actually trying to implement the concept of Bi-Directional iterator the definition can be found here http://www.sgi.com/tech/stl/BidirectionalIterator.html

Also you iterator does not meet event the trivial requirements to iterator as you are missing operator ->. See http://www.sgi.com/tech/stl/table_of_contents.html specifically look at the iterator section. I presume you are actually trying to implement the concept of Bi-Directional iterator the definition can be found here http://www.sgi.com/tech/stl/BidirectionalIterator.html

Also you iterator does not meet even the requirements to trivial iterator as you are missing operator ->. See http://www.sgi.com/tech/stl/table_of_contents.html specifically look at the iterator section. I presume you are actually trying to implement the concept of Bi-Directional iterator the definition can be found here http://www.sgi.com/tech/stl/BidirectionalIterator.html

Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341
Loading