Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages and disadvantages of using boost::iterator_facade?

Yep -- the title pretty much sums it up. I've got quite a few types that implement iterator concepts, and I'm wondering if it's worthwhile to pull in this boost header instead of implementing things manually.

So far:

Advantages

  • Well specified
  • Less likely to have bugs
like image 995
Billy ONeal Avatar asked Apr 07 '10 05:04

Billy ONeal


1 Answers

If maintaining your own iterator types becomes a burden then switch to boost. They are well specified and tested and less likely to have bugs.

like image 80
Eddy Pronk Avatar answered Oct 04 '22 03:10

Eddy Pronk