#ifndef SPROUT_CONTAINER_SSCRISK_CEL_ARRAY_HPP #define SPROUT_CONTAINER_SSCRISK_CEL_ARRAY_HPP #include #include #if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION # include # include # include # include #endif #if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION namespace sprout { // // container_traits // template struct container_traits > : public sprout::detail::container_traits_default > { public: typedef sprout::index_iterator&, true> iterator; typedef sprout::index_iterator const&, true> const_iterator; }; } // namespace sprout namespace sprout { // // range_begin // template inline typename sprout::container_traits >::iterator range_begin(sscrisk::cel::array& cont) { return typename sprout::container_traits >::iterator(cont, 0); } template inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator range_begin(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, 0); } // // range_end // template inline typename sprout::container_traits >::iterator range_end(sscrisk::cel::array& cont) { return typename sprout::container_traits >::iterator(cont, cont.size()); } template inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator range_end(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, cont.size()); } } // namespace sprout #endif #endif // #ifndef SPROUT_CONTAINER_SSCRISK_CEL_ARRAY_HPP