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:
parent
fa1d769bdf
commit
1ef8a6a63b
64 changed files with 1570 additions and 254 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue