
From: Soares Chen Ruo Fei <crf@hypershell.org> but it does require that O(1) operations don't
become O(N) operations, or that O(N) operations become O(N^2) operations.
Ok I got what you mean. I think it'll be easier to just remove the decrement function completely. During implementation I also wondered if there is any real use for reverse code point iterator, but since I still got time I just implemented it anyway to leave it for just in case. (Actually it's also because I don't know if there is any way to conditionally let the code point iterator inherit from either std::forward_iterator or std::bidirectional_iterator)
Ok... Now I will make your life even harder :-) Many Unicode algorithms like segmentation or collation require random access... So you do need random access or bidirectional iterator. Bottom line... Don't bother. It is better to use Unicode in first place :-) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/