1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix inline

add container/indexes.hpp
add tuple/indexes.hpp
This commit is contained in:
bolero-MURAKAMI 2012-04-04 22:23:41 +09:00
parent ba6482d1ec
commit c6bd230ee4
340 changed files with 1087 additions and 979 deletions

View file

@ -19,11 +19,11 @@ namespace sprout {
}
template<typename Container>
SPROUT_CONSTEXPR inline typename sprout::container_traits<Container>::const_iterator begin(Container const& cont) {
inline SPROUT_CONSTEXPR typename sprout::container_traits<Container>::const_iterator begin(Container const& cont) {
return cont.begin();
}
template<typename T, std::size_t N>
SPROUT_CONSTEXPR inline typename sprout::container_traits<T const[N]>::const_iterator begin(T const (& arr)[N]) {
inline SPROUT_CONSTEXPR typename sprout::container_traits<T const[N]>::const_iterator begin(T const (& arr)[N]) {
return arr;
}
@ -31,11 +31,11 @@ namespace sprout {
// cbegin
//
template<typename Container>
SPROUT_CONSTEXPR inline typename sprout::container_traits<Container>::const_iterator cbegin(Container const& cont) {
inline SPROUT_CONSTEXPR typename sprout::container_traits<Container>::const_iterator cbegin(Container const& cont) {
return cont.begin();
}
template<typename T, std::size_t N>
SPROUT_CONSTEXPR inline typename sprout::container_traits<T const[N]>::const_iterator cbegin(T const (& arr)[N]) {
inline SPROUT_CONSTEXPR typename sprout::container_traits<T const[N]>::const_iterator cbegin(T const (& arr)[N]) {
return arr;
}
} // namespace sprout