1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-10-05 13:00:00 +00:00

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
commit 1ef8a6a63b
64 changed files with 1570 additions and 254 deletions

View file

@ -432,8 +432,8 @@ namespace sprout {
public:
typedef T value_type;
#if SPROUT_USE_PTR_INDEX_ITERATOR_IMPLEMENTATION
typedef sprout::ptr_index_iterator<T> iterator;
typedef sprout::ptr_index_iterator<T const> const_iterator;
typedef sprout::ptr_index_iterator<T, true> iterator;
typedef sprout::ptr_index_iterator<T const, true> const_iterator;
#else
typedef T* iterator;
typedef T const* const_iterator;

View file

@ -20,8 +20,8 @@ namespace sprout {
: public sprout::detail::container_traits_default<sscrisk::cel::array<T, N> >
{
public:
typedef sprout::index_iterator<sscrisk::cel::array<T, N>&> iterator;
typedef sprout::index_iterator<sscrisk::cel::array<T, N> const&> const_iterator;
typedef sprout::index_iterator<sscrisk::cel::array<T, N>&, true> iterator;
typedef sprout::index_iterator<sscrisk::cel::array<T, N> const&, true> const_iterator;
};
} // namespace sprout