If STL Had Been Designed by a Committee
I've been reading on XML schema, and it's embarrassingly obvious that it has been designed by a committee.
The facets for restricting a simple type include the following:
On the C++ STL front, the same committee would grace us the following new container methods:
const_iterator begin_inclusive() const; const_iterator end_inclusive() const; reverse_iterator rbegin_inclusive(); reverse_iterator rend_inclusive(); const_iterator begin_exclusive() const; const_iterator end_exclusive() const; reverse_iterator rbegin_exclusive(); reverse_iterator rend_exclusive(); int element_ordinal(iterator pos) const; void set_element_ordinal(iterator pos, int n);