add sprout::string_ref

support conversion array-like container iterator to pointer
This commit is contained in:
bolero-MURAKAMI 2013-02-19 02:49:10 +09:00
parent fa1d769bdf
commit 1ef8a6a63b
64 changed files with 1570 additions and 254 deletions

View file

@ -24,8 +24,8 @@ namespace sprout {
public:
typedef T value_type;
#if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION
typedef sprout::index_iterator<array&> iterator;
typedef sprout::index_iterator<array const&> const_iterator;
typedef sprout::index_iterator<array&, true> iterator;
typedef sprout::index_iterator<array const&, true> const_iterator;
#else
typedef T* iterator;
typedef T const* const_iterator;