*/
template <bool is_const_iterator = false>
class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
- /* XXX: Ensure the <iterator> header is included to avoid cryptic errors:
- *
- * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected template-name before ‘<’ token
- * class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
- * ^
- * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected ‘{’ before ‘<’ token
- * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected unqualified-id before ‘<’ token
- */
-
{
+ /* XXX: Ensure the <iterator> header is included to avoid cryptic errors:
+ *
+ * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected template-name before ‘<’ token
+ * class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
+ * ^
+ * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected ‘{’ before ‘<’ token
+ * GenericStorageContainerTemplateImpl.hpp:168:42: error: expected unqualified-id before ‘<’ token
+ */
+
/*
* 1. typedef the container's type to the naming convention used by the STL iterators (makes readable code)
* 2. Use Metaprogramming's std::conditional to decide whether to declare const or non-const iterator
}; // end of Iterator
- /* use these handy short-cuts in application code
- */
- typedef iterator<true> _const_iterator;
- typedef iterator<false> _iterator;
+ // use these handy short-cuts in application code
+ typedef iterator<true> _const_iterator;
+ typedef iterator<false> _iterator;
}; // end of GenericStorageContainerTemplateImpl