#ifndef SPROUT_CONTAINER_BEGIN_HPP #define SPROUT_CONTAINER_BEGIN_HPP #include #include #include namespace sprout { // // begin // template inline typename sprout::container_traits::iterator begin(Container& cont) { return cont.begin(); } template inline typename sprout::container_traits::iterator begin(T (& arr)[N]) { return arr; } template inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator begin(Container const& cont) { return cont.begin(); } template inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator begin(T const (& arr)[N]) { return arr; } // // cbegin // template inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cbegin(Container const& cont) { return cont.begin(); } template inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cbegin(T const (& arr)[N]) { return arr; } } // namespace sprout #endif // #ifndef SPROUT_CONTAINER_BEGIN_HPP